Skip to content

Commit 8191ead

Browse files
authored
Update compose.yml with log rotation and redis
1 parent 1771113 commit 8191ead

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

dkroutingtool/compose.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,37 @@
1+
volumes:
2+
redisdata:
3+
driver: local
14
services:
5+
cartredis:
6+
image: redis
7+
restart: always
8+
volumes:
9+
- redisdata:/data
10+
command: redis-server --bind 0.0.0.0
211
backend:
12+
restart: always
313
image: ghcr.io/datakind/dk-routing:main
414
command: /opt/conda/bin/python src/py/server.py
515
ports:
616
- "5001:5001"
7-
- "8080:8080"
17+
logging:
18+
driver: "json-file"
19+
options:
20+
max-size: "10m"
21+
max-file: "5"
822
frontend:
23+
restart: always
924
environment:
1025
SERVER_HOST: backend
1126
build:
1227
context: ./src/py/ui/
1328
dockerfile: dashboard.dockerfile
1429
ports:
15-
- "8501:8501"
30+
- "80:8501"
1631
volumes:
1732
- ./src/py/ui:/src/app
33+
logging:
34+
driver: "json-file"
35+
options:
36+
max-size: "10m"
37+
max-file: "5"

0 commit comments

Comments
 (0)