-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 1.72 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.9'
services:
nestjs:
depends_on:
- postgres
container_name: nestjs_api_dev
image: nestjs-api-dev:1.0.0
build:
context: ./srcs/nestjs-backend
target: development
command: npm run start:dev
ports:
- 3002:3000
- 9229:9229
networks:
- transcendence-net
volumes:
- ./srcs/react-frontend/src/game/shared:/usr/src/app/src/game/shared
- ./srcs/nestjs-backend:/usr/src/app
- /usr/src/app/node_modules
- ./srcs/avatars:/usr/src/avatars
restart: unless-stopped
react:
depends_on:
- nestjs
container_name: react_frontend_dev
image: react_frontend_dev:1.0.0
build:
context: ./srcs/react-frontend
target: development
command: npm run start
ports:
- 3000:3000
networks:
- transcendence-net
volumes:
- ./srcs/react-frontend:/usr/src/app
- /usr/src/app/node_modules
- ./srcs/avatars:/usr/src/app/src/avatars
restart: unless-stopped
postgres:
image: postgres:alpine
container_name: "postgres"
environment:
DATABASE_HOST: "127.0.0.1"
POSTGRES_PASSWORD: "root"
POSTGRES_USER: "root"
POSTGRES_DB: "db"
PG_DATA: /var/lib/postgresql/data
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- transcendence-net
restart: unless-stopped
pgadmin:
depends_on:
- postgres
container_name: "container-pgadmin4"
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- 5050:80
networks:
- transcendence-net
networks:
transcendence-net:
volumes:
pgdata: