-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-server-deploy.yml
63 lines (57 loc) · 1.03 KB
/
docker-compose-server-deploy.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
version: '3.12'
networks:
kcx-network:
driver: bridge
services:
backend:
build:
context: ./backend/
dockerfile: Dockerfile
env_file:
- .env
ports:
- "8000:8000"
networks:
- kcx-network
volumes:
- ./database:/app/database
- ./data:/app/data
environment:
- IS_IN_KCX_BACKEND_DOCKER=TRUE
frontend:
build:
context: ./frontend/
dockerfile: Dockerfile
ports:
- "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
ports:
- "8080:8080"
networks:
- kcx-network
nginx:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- frontend
- backend
networks:
- kcx-network