-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathcompose.demo.yml
64 lines (59 loc) · 1.61 KB
/
compose.demo.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
57
58
59
60
61
62
63
64
services:
watchtower:
image: containrrr/watchtower
command:
- "--label-enable"
- "--interval"
- "30"
- "--rolling-restart"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
traefik:
image: "traefik:v3.3"
container_name: "traefik"
command:
- "--providers.docker=true"
- "--entryPoints.web.address=:80"
- "--entryPoints.websecure.address=:443"
ports:
- "80:80"
- "443:443"
networks:
- traefik-net
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
backend:
image: ghcr.io/usekaneo/api:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`demo-api.kaneo.app`)"
- "traefik.http.routers.backend.entrypoints=web"
- "com.centurylinklabs.watchtower.enable=true"
- "com.centurylinklabs.watchtower.enable-volume-preservation=true"
environment:
JWT_ACCESS: "change_me"
DB_PATH: "/app/apps/api/data/kaneo.db"
DEMO_MODE: "true"
volumes:
- sqlite_data:/app/apps/api/data:rw
networks:
- traefik-net
restart: unless-stopped
frontend:
image: ghcr.io/usekaneo/web:latest
environment:
KANEO_API_URL: "https://demo-api.kaneo.app"
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`demo.kaneo.app`)"
- "traefik.http.routers.frontend.entrypoints=web"
- "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped
networks:
- traefik-net
networks:
traefik-net:
driver: bridge
volumes:
sqlite_data:
name: kaneo_sqlite_data