-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdc.yml
56 lines (56 loc) · 1.38 KB
/
dc.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
47
48
49
50
51
52
53
54
55
56
version: '3.5'
services:
nginx-proxy:
image: nginxproxy/nginx-proxy:latest
environment:
- LC_ALL=$LC_ALL
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
- DEFAULT_HOST=$DEFAULT_HOST
- HTTP_PORT=$NGINX_HTTP_PORT
- HTTPS_PORT=$NGINX_HTTPS_PORT
volumes:
- ./data/certs:/etc/nginx/certs
- ./data/htpasswd:/etc/nginx/htpasswd
- ./data/conf.d:/etc/nginx/conf.d
- ./data/vhost.d:/etc/nginx/vhost.d:ro
- $DOCKER_SOCK_PATH:/tmp/docker.sock:ro
ports:
- $NGINX_HTTP_PORT:$NGINX_HTTP_PORT
- $NGINX_HTTPS_PORT:$NGINX_HTTPS_PORT
networks:
- nginx
restart: unless-stopped
acme:
image: adferrand/dnsrobocert:latest
environment:
- LC_ALL=$LC_ALL
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
volumes:
- ./data/acme/config.yml:/etc/dnsrobocert/config.yml
- ./data/acme/create_nginx_certs.sh:/usr/local/bin/create-nginx-certs
- ./data/acme/letsencrypt:/etc/letsencrypt
- ./data/certs:/etc/nginx/certs
networks:
- nginx
restart: unless-stopped
whoami:
image: jwilder/whoami
environment:
- LC_ALL=$LC_ALL
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
- VIRTUAL_HOST=$WHOAMI_HOST
- VIRTUAL_PORT=8000
expose: [ 8000 ]
networks:
- nginx
restart: unless-stopped
networks:
nginx:
name: nginx
external: true