-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
53 lines (52 loc) · 1005 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
52
53
# 로컬 테스트용으로만 사용하세요.
version: "3.9"
services:
nginx:
build:
context: ./nginx
target: local
ports:
- "80:80"
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
mongodb:
build:
context: ./mongodb
target: local
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=moheyum
- MONGO_INITDB_ROOT_PASSWORD=localpassword
volumes:
- "./mongodb/data:/data/db"
restart: always
redis:
image: redis:7.0.5-alpine
ports:
- "6379:6379"
be:
build:
context: ./server
ports:
- "4000:4000"
env_file:
- "./server/.env.local"
restart: always
depends_on:
- mongodb
- redis
fe:
build:
context: ./client
target: local
ports:
- "3000:3000"
env_file:
- "./client/.env.local"
extra_hosts:
- "localhost:host-gateway"
restart: always
depends_on:
- be