-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
49 lines (46 loc) · 1.38 KB
/
compose.yaml
File metadata and controls
49 lines (46 loc) · 1.38 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
42
43
44
45
46
47
48
49
volumes:
nginx_acme:
nginx_certs:
nginx_html:
nginx_vhost:
services:
# https://github.com/nginx-proxy/acme-companion
acme:
image: nginxproxy/acme-companion:latest
restart: unless-stopped
profiles: [prod]
environment:
- DEFAULT_EMAIL=notgnoshi@gmail.com
volumes_from:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- nginx_certs:/etc/nginx/certs:rw
- nginx_acme:/etc/acme.sh
# https://github.com/nginx-proxy/nginx-proxy
proxy:
image: nginxproxy/nginx-proxy:latest
restart: unless-stopped
ports:
- 80:80
- 443:443
environment:
- DEFAULT_HOST=agill.xyz
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- nginx_certs:/etc/nginx/certs:ro
- nginx_html:/usr/share/nginx/html
- nginx_vhost:/etc/nginx/vhost.d
# https://github.com/nginx/docker-nginx
static-site:
image: nginx:latest
restart: unless-stopped
expose:
- 80
- 443
environment:
- VIRTUAL_HOST=agill.xyz,agill.net,localhost
- LETSENCRYPT_HOST=agill.net,agill.xyz
volumes:
- ./site:/usr/share/nginx/html:ro
- ./nginx/site.conf:/etc/nginx/conf.d/default.conf:ro