-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
41 lines (38 loc) · 1.07 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
41 lines (38 loc) · 1.07 KB
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
services:
nginx-proxy:
image: nginxproxy/nginx-proxy:1.6
container_name: nginx-proxy
labels:
- com.github.nginx-proxy.nginx=true # <— optional but recommended
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- nginx_certs:/etc/nginx/certs:rw
- nginx_vhost:/etc/nginx/vhost.d
- nginx_html:/usr/share/nginx/html
restart: unless-stopped
acme-companion:
image: nginxproxy/acme-companion:2.5
container_name: acme-companion
environment:
NGINX_PROXY_CONTAINER: "nginx-proxy"
DEFAULT_EMAIL: "admin@zoekalle.com"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- nginx_certs:/etc/nginx/certs:rw
- nginx_vhost:/etc/nginx/vhost.d
- nginx_html:/usr/share/nginx/html
depends_on:
- nginx-proxy
restart: unless-stopped
api:
environment:
VIRTUAL_HOST: "www.zoekalle.com"
LETSENCRYPT_HOST: "www.zoekalle.com"
LETSENCRYPT_EMAIL: "admin@zoekalle.com"
volumes:
nginx_certs:
nginx_vhost:
nginx_html: