-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (47 loc) · 908 Bytes
/
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
networks:
kcx-network:
driver: bridge
services:
backend:
build:
context: ./backend/
dockerfile: Dockerfile
env_file:
- .env
ports:
- "8000:8000"
depends_on:
- db-redis
- db-sqlite3
networks:
- kcx-network
volumes:
- ./database:/app/database
- ./data:/app/data
environment:
- IS_IN_KCX_BACKEND_DOCKER=TRUE
frontend:
build:
context: ./frontend/
dockerfile: Dockerfile
ports:
- "3000:3000"
- "5173:5173"
depends_on:
- backend
networks:
- kcx-network
db-redis:
image: "redis:alpine"
ports:
- "6379:6379"
networks:
- kcx-network
db-sqlite3:
image: "nouchka/sqlite3"
volumes:
- ./database:/data # Mount the host directory to persist the SQLite files
ports:
- "8080:8080"
networks:
- kcx-network