-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
60 lines (57 loc) · 1.22 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
version: '3'
# volumes:
# postgres-volume:
# name: postgres-volume
# driver: local
# driver_opts:
# type: none
# device: ./docker/postgres
# o: bind
networks:
trans:
name: trans
driver: bridge
ipam:
config:
- subnet: 172.26.0.0/16
services:
postgres:
container_name: postgres
image: postgres:14
restart: on-failure
ports:
- "5432:5432"
env_file:
- .env
networks:
- trans
# volumes:
# - postgres-volume:/var/lib/postgresql/data
tty: true
nestjs:
container_name: nestjs
build: ./backend/
image: node:transcendence
restart: on-failure
env_file:
- .env
depends_on:
- postgres
ports:
- "3001:3001"
- "4000:3000"
networks:
- trans
react:
container_name: react
build: ./frontend/
image: react:transcendence
restart: on-failure
ports:
- "3000:3000"
depends_on:
- nestjs
env_file:
- .env
networks:
- trans