2023-09-04 09:03:36 +00:00
|
|
|
x-healthcheck:
|
|
|
|
&x-healthcheck
|
|
|
|
test: curl --fail http://127.0.0.1 || exit 1
|
|
|
|
interval: 60s
|
|
|
|
retries: 5
|
|
|
|
start_period: 20s
|
|
|
|
timeout: 10s
|
|
|
|
|
|
|
|
services:
|
|
|
|
onlyoffice-proxy:
|
|
|
|
image: nginx
|
|
|
|
container_name: ${PROXY_HOST}
|
|
|
|
restart: always
|
|
|
|
healthcheck:
|
|
|
|
<<: *x-healthcheck
|
|
|
|
test: nginx -t || exit 1
|
|
|
|
ports:
|
|
|
|
- ${EXTERNAL_PORT}:80
|
|
|
|
environment:
|
|
|
|
- ROUTER_HOST=${ROUTER_HOST}
|
2024-02-29 15:49:55 +00:00
|
|
|
- EXTERNAL_PORT=${EXTERNAL_PORT}
|
2023-09-04 09:03:36 +00:00
|
|
|
volumes:
|
2023-09-06 12:49:13 +00:00
|
|
|
- webroot_path:/letsencrypt
|
2024-05-30 14:30:24 +00:00
|
|
|
- log_data:/var/log/nginx
|
2023-09-04 09:03:36 +00:00
|
|
|
- ./config/nginx/templates/nginx.conf.template:/etc/nginx/nginx.conf
|
2023-09-06 12:49:13 +00:00
|
|
|
- ./config/nginx/letsencrypt.conf:/etc/nginx/includes/letsencrypt.conf
|
2023-09-04 09:03:36 +00:00
|
|
|
- ./config/nginx/templates/proxy.upstream.conf.template:/etc/nginx/templates/proxy.upstream.conf.template:ro
|
|
|
|
- ./config/nginx/onlyoffice-proxy.conf:/etc/nginx/conf.d/default.conf
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: ${NETWORK_NAME}
|
|
|
|
external: true
|
|
|
|
|
|
|
|
volumes:
|
2024-05-30 14:30:24 +00:00
|
|
|
log_data:
|
2023-09-06 12:49:13 +00:00
|
|
|
webroot_path:
|