-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.example
41 lines (38 loc) · 1.3 KB
/
docker-compose.yml.example
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
services:
traefik:
restart: unless-stopped
image: "traefik:v2.9"
container_name: "traefik"
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:8080"
- "--providers.docker.useBindPortIP=true"
ports:
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
openshow-dynamic:
image: sheepman4267/openshow:0.2.0
volumes:
- "./openshow/static-root:/static-root"
- "./openshow/media-root:/media-root"
- "./openshow/db:/db"
environment:
- OPENSHOW_SECRET_KEY=set-a-secret-key-please
- OPENSHOW_ALLOWED_HOSTS=localhost
- OPENSHOW_SQLITE3_PATH=/db/db.sqlite3
labels:
- "traefik.enable=true"
- "traefik.http.routers.openshow-dynamic.rule=PathPrefix(`/`)"
- "traefik.http.routers.openshow-dynamic.entrypoints=web"
openshow-static:
restart: unless-stopped
image: docker.io/nginx
volumes:
- './openshow/static-root:/usr/share/nginx/html/static:ro'
- './openshow/media-root:/usr/share/nginx/html/media:ro'
labels:
- "traefik.enable=true"
- "traefik.http.routers.openshow-static.rule=PathPrefix(`/static/`) || PathPrefix(`/media/`)"
- "traefik.http.routers.openshow-static.entrypoints=web"