Files
send-docker-compose/docker-compose.yaml
2020-07-09 11:34:03 +02:00

54 lines
1.3 KiB
YAML

version: "3"
services:
nginx-proxy:
container_name: nginx-proxy
image: 'jwilder/nginx-proxy:alpine'
restart: always
ports:
- '80:80'
- '443:443'
environment:
- DEFAULT_HOST=${HOST}
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- proxy-certs:/etc/nginx/certs:ro
- proxy-vhost:/etc/nginx/vhost.d
- proxy-html:/usr/share/nginx/html
proxy-letsencrypt:
image: 'jrcs/letsencrypt-nginx-proxy-companion'
restart: always
environment:
- DEFAULT_EMAIL=${LETSENCRYPT_EMAIL}
- NGINX_PROXY_CONTAINER=nginx-proxy
- NGINX_DOCKER_GEN_CONTAINER=nginx-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- proxy-certs:/etc/nginx/certs
- proxy-vhost:/etc/nginx/vhost.d
- proxy-html:/usr/share/nginx/html
send:
image: 'mozilla/send:latest'
restart: always
ports:
- '1234:1234'
environment:
- VIRTUAL_HOST=${HOST}
- VIRTUAL_PORT=1234
- DHPARAM_GENERATION=false
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
- PORT=1234
- REDIS_HOST=redis
redis:
image: 'redis:alpine'
restart: always
volumes:
- send-redis:/data
volumes:
send-redis:
proxy-certs:
proxy-vhost:
proxy-html: