-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
ethercalc.yml
34 lines (30 loc) · 963 Bytes
/
ethercalc.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
# DOMAIN=example.com docker stack deploy -c ethercalc ethercalc
services:
web:
image: audreyt/ethercalc:${VERSION:-latest}
environment:
- REDIS_PORT_6379_TCP_ADDR=redis
- REDIS_PORT_6379_TCP_PORT=6379
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.ethercalc-${NUMBER:-1}.rule=Host(`${DOMAIN:-ethercalc.localhost}`)
- traefik.http.routers.ethercalc-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.ethercalc-${NUMBER:-1}.service=ethercalc-${NUMBER:-1}
- traefik.http.routers.ethercalc-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.ethercalc-${NUMBER:-1}.loadbalancer.server.port=8000
redis:
image: redis:6-alpine
volumes:
- ${VOLUME_PATH}redis:/data
networks:
- internal
volumes:
redis:
networks:
internal:
driver: overlay
attachable: true
default:
external: true
name: traefik-net