-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.14 KB
/
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
54
55
56
57
version: '3'
services:
web-app:
image: web:18-alpine3.17
container_name: web-app
# Set project root directory, docker image 가 빌드할 때 사용하는 파일이 이 경로 안에 모두 포함 되어 있어야 한다.
build:
dockerfile: docker/back/srcs/web-app/Dockerfile
ports:
- "8080:8080"
- "10001:10001"
- "10002:10002"
depends_on:
- game-app
- postgres
networks:
- intra
restart: always
game-app:
image: game:18-alpine3.17
container_name: game-app
build:
dockerfile: docker/back/srcs/game-app/Dockerfile
ports:
- "10003:10003"
expose:
- "8081"
networks:
- intra
restart: always
postgres:
image: postgres:15.3-alpine3.18
container_name: postgres
ports:
- 5432:5432
env_file:
- .env
networks:
- intra
restart: always
nextjs:
build:
context: ./front
dockerfile: ../docker/front/srcs/nextjs/Dockerfile
ports:
- 3000:3000
networks:
- intra
restart: always
networks:
intra:
driver: bridge