-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (77 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
80 lines (77 loc) · 1.4 KB
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
80
services:
db:
container_name: db
image: postgres:17
restart: always
env_file:
- "./node/.env"
networks:
- node-network
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
networks:
- node-network
ports:
- "5050:80"
env_file:
- "./node/.env"
restart: unless-stopped
depends_on:
- db
backend:
container_name: backend
build:
context: node
working_dir: /usr/src/app
networks:
- node-network
volumes:
- ./node:/usr/src/app
- backend_node_modules:/usr/src/app/node_modules
tty: true
ports:
- "3000:3000"
command: npm start
depends_on:
- db
frontend:
container_name: frontend
build:
context: react
working_dir: /usr/src/app
networks:
- node-network
volumes:
- ./react:/usr/src/app
- /usr/src/app/node_modules
tty: true
ports:
- "5173:5173"
command: npm run dev
depends_on:
- db
- backend
nginx:
build:
context: nginx
container_name: nginx
restart: always
tty: true
ports:
- "8000:80"
networks:
- node-network
depends_on:
- backend
- frontend
networks:
node-network:
driver: bridge
volumes:
backend_node_modules:
postgres-data: