-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
53 lines (47 loc) · 1.55 KB
/
docker-compose.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
version: "3"
services:
redis:
image: redis:alpine
restart: unless-stopped
# do not publish the redis port to keep it internal
# ports:
# - 6379:6379
# redis commander is useful for debugging and not needed otherwise
# *** Comment out the following section for production! ***
# redis-commander:
# image: rediscommander/redis-commander:latest
# depends_on:
# - redis
# restart: unless-stopped
# environment:
# - REDIS_HOSTS=local:redis:6379
# # - HTTP_USER=root
# # - HTTP_PASSWORD=qwerty
# ports:
# - 127.0.0.1:9839:8081
web:
build: .
depends_on:
- redis
restart: unless-stopped
environment:
- DEBUG=1
- LOG_LEVEL=INFO
volumes:
- .:/code
- ./config:/config
# expose the port directly if not using traefik
# ports:
# - "9830:8000"
# traefik configuration
labels:
- "traefik.enable=true" # enables the service
- "traefik.http.routers.epaper.rule=(Host(`garnix`) || Host(`garnix.local`) || Host(`192.168.178.20`)) && PathPrefix(`/epaper`)"
#- "traefik.http.routers.nginx.entrypoints=websecure" # if you named your 443 entrypoint differently than webscure, substitute it here!
#- "traefik.http.routers.nginx.tls.certresolver=letsencrypt" # if you named your cert resolver differently than letsencrypt, substitute it here!
networks:
- default
- traefik-global-proxy # Traefik network! If you named it differently, substitute it here and below.
networks:
traefik-global-proxy:
external: true