forked from boostcampwm-2024/web32-BooMap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocker-compose.dev.yml
More file actions
79 lines (73 loc) ยท 1.53 KB
/
Docker-compose.dev.yml
File metadata and controls
79 lines (73 loc) ยท 1.53 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
redis:
image: redis:7.4.1-alpine
container_name: redis
networks:
- my-network
mysql:
image: mysql:8.0.39
container_name: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=boomap
- MYSQL_USER=boomap
- MYSQL_PASSWORD=test
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --skip-character-set-client-handshake
networks:
- my-network
api-server:
build:
context: ./BE
dockerfile: Dockerfile.api.dev
container_name: api
volumes:
- ./BE:/app
- /app/node_modules
env_file:
- .env.dev
command: nest start api-server --watch
networks:
- my-network
socket-server:
build:
context: ./BE
dockerfile: Dockerfile.socket.dev
container_name: socket
volumes:
- ./BE:/app
- /app/node_modules
env_file:
- .env.dev
command: nest start socket-server --watch
networks:
- my-network
nginx:
build:
context: .
dockerfile: Dockerfile.nginx.dev
ports:
- "80:80"
- "443:443"
container_name: nginx
volumes:
- ./nginx/dev.conf:/etc/nginx/conf.d/default.conf
networks:
- my-network
fe:
build:
context: .
dockerfile: Dockerfile.fe.dev
container_name: fe
volumes:
- ./client/src:/app/src
env_file:
- .env.dev
command: ["npm", "run", "dev"]
networks:
- my-network
networks:
my-network:
driver: bridge