-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-cloud.yml
46 lines (42 loc) · 1.24 KB
/
docker-cloud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
nginx-ghost-proxy-template:
image: donovanmuller/nginx-ghost-proxy-template:1
command: echo "Nginx Ghost proxy template volume"
autoredeploy: false
letsencrypt-certs:
image: busybox
volumes:
- "/etc/nginx/certs"
command: echo "Letsencrypt certificate volume"
autoredeploy: false
nginx-proxy:
image: nginx:1-alpine
ports:
- "80:80"
- "443:443"
volumes_from:
- letsencrypt-certs
- nginx-ghost-proxy-template
nginx-gen:
image: donovanmuller/docker-gen-docker-cloud:0.7.3
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
volumes_from:
- nginx-proxy
- nginx-ghost-proxy-template
entrypoint: /usr/local/bin/docker-gen -notify-output -notify "./restart_service.sh" -watch -only-exposed -wait 10s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
environment:
- PROXY_SERVICE_ENV_VAR=nginx-proxy
roles:
- global
letsencrypt-nginx-proxy:
image: donovanmuller/docker-letsencrypt-nginx-proxy-companion:latest
volumes_from:
- letsencrypt-certs
- nginx-proxy
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
environment:
- NGINX_DOCKER_GEN_CONTAINER=nginx-gen
- ACME_CA_URI=https://acme-staging.api.letsencrypt.org/directory
roles:
- global