-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yaml
58 lines (54 loc) · 1.67 KB
/
docker-compose.yaml
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
version: '3'
services:
backend:
build:
context: ./app
dockerfile: Dockerfile
ports:
- "7865:7865"
networks:
- common-network
volumes:
- ./app:/code
- ./models:/models
env_file:
- .env
# Add the "restart: unless-stopped" option to automatically restart the container unless explicitly stopped
restart: unless-stopped
# Add the "labels" section to set the container to remove itself on shutdown
labels:
- "com.docker.compose.container-name=backend"
- "com.docker.compose.service=backend"
- "com.docker.compose.oneoff=False"
- "com.docker.compose.project=brainchulo-backend"
# Add the "stop_signal: SIGINT" option to use SIGINT signal for stopping the container gracefully
stop_signal: SIGINT
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "5173:5173"
networks:
- common-network
volumes:
- ./frontend:/code
- /code/node_modules
depends_on:
- backend
# Add the "restart: unless-stopped" option to automatically restart the container unless explicitly stopped
restart: unless-stopped
# Add the "labels" section to set the container to remove itself on shutdown
labels:
- "com.docker.compose.container-name=frontend"
- "com.docker.compose.service=frontend"
- "com.docker.compose.oneoff=False"
- "com.docker.compose.project=brainchulo-frontend"
# Add the "stop_signal: SIGINT" option to use SIGINT signal for stopping the container gracefully
stop_signal: SIGINT
entrypoint: ./entrypoint.sh
env_file:
- .env
networks:
common-network:
driver: bridge