-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (63 loc) · 1.33 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
# Use this tool to format your yml files
# https://jsonformatter.org/yaml-formatter
version: '3.8'
volumes:
data:
services:
postgres:
image: 'postgres:13'
restart: always
container_name: backend_postgres
ports:
- 5434:5432
env_file:
- ./backend/.env
networks:
- transcendance_ntw
volumes:
# - ./database:/var/lib/postgresql/data
- data:/var/lib/postgresql/data
backend:
container_name: backend_nestjs
restart: unless-stopped
image: transcendance-api:1.0.0
build:
context: backend
target: development
dockerfile: Dockerfile
ports:
- 3333:3333
- 5555:5555
- 4343:4343
- 5252:5252
# debugging port
- 9229:9229
environment:
NODE_OPTIONS: --trace-deprecation
networks:
- transcendance_ntw
volumes:
- ./backend:/app
depends_on:
- postgres
frontend:
container_name: frontend_reactjs
restart: unless-stopped
image: transcendance-client:1.0.0
build:
context: frontend
target: development
dockerfile: Dockerfile
volumes:
- ./frontend:/app
ports:
- 3000:3000
networks:
- transcendance_ntw
depends_on:
- backend
environment:
- CHOKIDAR_USEPOLLING=true
networks:
transcendance_ntw:
driver: bridge