-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
80 lines (72 loc) · 1.68 KB
/
docker-compose.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
nginx-proxy:
image: nginxproxy/nginx-proxy:alpine
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx_conf/proxy.conf:/etc/nginx/proxy.conf
- ./nginx_conf/${DOMAIN}_location:/etc/nginx/vhost.d/${DOMAIN}_location
- certs:/etc/nginx/certs
- vhosts:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy"
networks:
- proxy_net
letsencrypt-companion:
image: jrcs/letsencrypt-nginx-proxy-companion:v1.12
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- certs:/etc/nginx/certs
- vhosts:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
depends_on:
- nginx-proxy
dshackle:
container_name: dshackle
image: emeraldpay/dshackle:0.13
restart: unless-stopped
volumes:
- ./dshackle_conf:/etc/dshackle
expose:
- "8080"
environment:
- VIRTUAL_HOST=${DOMAIN}
- VIRTUAL_PORT=8080
- LETSENCRYPT_HOST=${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- proxy_net
- back_net
redis:
container_name: redis
image: redis:alpine
restart: unless-stopped
networks:
- back_net
metrics:
container_name: pusher
image: debian
build:
context: ./metrics
dockerfile: ./Dockerfile
env_file:
- ./metrics/.env
networks:
- back_net
depends_on:
- dshackle
networks:
proxy_net:
driver: bridge
back_net:
driver: bridge
volumes:
certs:
vhosts:
html: