38 lines
1.4 KiB
YAML
38 lines
1.4 KiB
YAML
services:
|
|
nginx-loft:
|
|
image: nginx:latest
|
|
container_name: nginx-${CONTEXT}
|
|
networks:
|
|
nginx-default:
|
|
ulimits:
|
|
nproc: ${ULIMIT_NPROC:-65535}
|
|
nofile:
|
|
soft: ${ULIMIT_NPROC:-65535}
|
|
hard: ${ULIMIT_NPROC:-65535}
|
|
extra_hosts:
|
|
- host.docker.internal:host-gateway
|
|
extends:
|
|
file: common-settings.yml
|
|
service: common-settings
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- /opt/docker-data/nginx-${CONTEXT}/nginx/conf/certs:/etc/nginx/sslcerts
|
|
- /opt/docker-data/nginx-${CONTEXT}/nginx/conf/nginx/nginx.conf:/etc/nginx/nginx.conf
|
|
- /opt/docker-data/nginx-${CONTEXT}/nginx/conf/nginx/conf.d/ssl.conf:/etc/nginx/conf.d/ssl.conf
|
|
- /opt/docker-data/nginx-${CONTEXT}/nginx/conf/nginx/sites-enabled:/etc/nginx/sites-enabled
|
|
- /opt/docker-data/nginx-${CONTEXT}/nginx/data/logs:/var/log/nginx
|
|
networks:
|
|
# Variables are not supported in keys, only in values.
|
|
# Change static context string manually if need something else
|
|
nginx-default:
|
|
name: nginx-${CONTEXT}
|
|
driver: bridge
|
|
driver_opts:
|
|
com.docker.network.enable_ipv6: "false"
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: ${SUBNET}
|