-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
74 lines (68 loc) · 1.31 KB
/
docker-compose.dev.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
64
65
66
67
68
69
70
71
72
73
74
version: "3"
services:
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: ./Dockerfile.dev
image: frontend
ports:
- 3000:3000
restart: on-failure:3
volumes:
- ./frontend:/app
- ./types:/app/types
env_file:
- .env
networks:
- naengmyeon_pong_network
backend:
container_name: backend
build:
context: ./backend
dockerfile: ./Dockerfile.dev
image: backend
ports:
- 3001:3001
restart: on-failure:3
depends_on:
- db
volumes:
- ./backend:/app
- ./types:/app/types
env_file:
- .env
networks:
- naengmyeon_pong_network
db:
container_name: postgres
image: postgres:15.3-alpine3.18
ports:
- 5432:5432
restart: on-failure:3
volumes:
- postgres-data:/var/lib/postgresql/data
env_file:
- .env
networks:
- naengmyeon_pong_network
environment:
TZ: "Asia/Seoul"
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
restart: on-failure:3
ports:
- 5050:80
volumes:
- pgadmin-data:/var/lib/pgadmin
env_file:
- .env
networks:
- naengmyeon_pong_network
volumes:
postgres-data:
pgadmin-data:
networks:
naengmyeon_pong_network:
driver: bridge