-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 984 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
version: "2"
services:
writeservice-back:
container_name: writeservice-back
build: .
command: >
bash -c "cd /app &&
yarn install &&
ts-node ./node_modules/.bin/typeorm migration:run &&
yarn run start"
ports:
- "3000:3000"
volumes:
- ./:/app
depends_on:
- writeservice-pgdb
restart: always
writeservice-pgdb:
container_name: writeservice-pgdb
image: postgres:10.6
volumes:
- ./:/app
- writeservice-pgdb-data:/var/lib/postgresql/
environment:
POSTGRES_USER: ws_user
POSTGRES_PASSWORD: ws_password
POSTGRES_DB: writeservice
ports:
- 54322:5432
restart: always
writeservice-service:
container_name: writeservice-service
build: .
command: >
bash -c "cd /app && yarn run service"
volumes:
- ./:/app
depends_on:
- writeservice-back
- writeservice-pgdb
restart: always
volumes:
writeservice-pgdb-data: