forked from liang300pu/merck-label-dashboard-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 954 Bytes
/
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
version: "3.8"
services:
postgres:
image: postgres:latest
restart: always
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_DB=merck-production
ports:
- 5432:5432
networks:
- shared-network
volumes:
- ./postgres-db:/var/lib/postgresql/data
server:
container_name: merck_label_dashboard_server
restart: unless-stopped
image: merck-lablogs-server:1.0.0
build:
context: server
target: production
dockerfile: Dockerfile
ports:
- 5000:5000
networks:
- shared-network
depends_on:
- postgres
client:
container_name: merck_label_dashboard_client
restart: unless-stopped
image: merck-lablogs-client:1.0.0
build:
context: client
target: production
dockerfile: Dockerfile
ports:
- 3000:3000
networks:
- shared-network
depends_on:
- server
networks:
shared-network: