-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.24 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
version: "3.1"
services:
postgres:
container_name: postgres
build:
context: ./db/postgres
ports:
- "54320:54320"
environment:
POSTGRES_DB: ceres_growth
POSTGRES_USER: user
POSTGRES_PASSWORD: password
networks:
- postgres-compose-network
restart: unless-stopped
command: -p 54320
node-backend:
container_name: backend
build:
context: ./backend
user: "node"
working_dir: /home/node/backend
environment:
- WEB_PORT=3000
volumes:
- ./backend/ceres-growth-backend:/home/node/backend
ports:
- "3333:3333"
command: yarn dev:server
networks:
- node-compose-network
- postgres-compose-network
restart: unless-stopped
node-web:
container_name: web
build:
context: ./web
user: "node"
working_dir: /home/node/ceres-growth-dashboard
environment:
- NODE_ENV=development
- WEB_PORT=3000
volumes:
- ./web/ceres-growth-dashboard:/home/node
ports:
- "3000:3000"
command: yarn start
networks:
- node-compose-network
restart: unless-stopped
stdin_open: true
networks:
node-compose-network:
driver: bridge
postgres-compose-network:
driver: bridge