-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
60 lines (55 loc) · 1.21 KB
/
docker-compose.yaml
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.9'
services:
frontend:
image: node:latest
container_name: frontend
tty: true
stdin_open: true
command: bash -c "npm install && npm run dev"
restart: always
working_dir: /frontend
volumes:
- ./frontend:/frontend
ports:
- ${PORT_FRONTEND}:${PORT_FRONTEND}
env_file: .env
platform: linux/x86_64
depends_on:
- backend
networks:
- ngcash_net_backend
backend:
image: node:latest
container_name: backend
tty: true
stdin_open: true
command: bash -c "npm install && npm run start:dev"
restart: always
working_dir: /backend
volumes:
- ./backend:/backend
ports:
- ${PORT_BACKEND}:${PORT_BACKEND}
env_file: .env
platform: linux/x86_64
depends_on:
- database
networks:
- ngcash_net_database
- ngcash_net_backend
database:
image: postgres:latest
container_name: database
platform: linux/x86_64
ports:
- ${DATABASE_PORT}:${DATABASE_PORT}
env_file: .env
restart: 'always'
networks:
- ngcash_net_database
command: -p ${DATABASE_PORT}
networks:
ngcash_net_database:
driver: bridge
ngcash_net_backend:
driver: bridge