This repository has been archived on 2023-05-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
neo/docker-compose.base.yml
2023-01-18 12:22:09 +01:00

47 lines
1.2 KiB
YAML

version: '2.2'
networks:
internal:
proxy:
external: true
services:
proxy:
container_name: proxy
restart: always
image: nginxproxy/nginx-proxy:latest
privileged: true
ports:
- 80:80
- 443:443
volumes:
- /srv/.webcerts:/etc/nginx/certs:rw
- /srv/proxy/other/vhost.d:/etc/nginx/vhost.d
- /srv/proxy/data/html:/usr/share/nginx/html
- /srv/proxy/config/nginx.conf:/etc/nginx/nginx.conf
- /var/run/docker.sock:/tmp/docker.sock
labels:
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true
networks:
proxy:
letsencrypt:
container_name: letsencrypt
restart: always
image: nginxproxy/acme-companion
depends_on:
- proxy
volumes:
- /srv/.webcerts:/etc/nginx/certs:rw
- /srv/proxy/config/conf.d:/etc/nginx/conf.d
- /srv/proxy/other/vhost.d:/etc/nginx/vhost.d
- /srv/proxy/data/html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- DEFAULT_EMAIL=webmaster@faulty.nl
- DEFAULT_HOST=home.famslof.nl
#- NGINX_DOCKER_GEN_CONTAINER=proxy
# profiles:
# - production
networks:
proxy: