-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (48 loc) · 1.02 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
version: "3"
services:
postgres:
image: library/postgres:12.2-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ppp
ports:
- "5432:5432"
volumes:
- db-data:/data
networks:
- ppp-v3-network
restart: unless-stopped
executor-node:
container_name: executor-node
image: executor-node
build: .
expose:
- "5000"
ports:
- "5000:5000"
environment:
- ENV=dev
- PORT=5000
# Postgres
- DB_DIALECT=postgres
- DB_HOST=postgres
- DB_PORT=5432
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_DATABASE=ppp
- DB_LOGGING=false
- DB_SYNCHRONIZATION=true
- DB_DROP_SCHEMA=false
- DB_MIGRATIONS_RUN=false
volumes:
- ./src:/usr/src/app/src
networks:
- ppp-v3-network
depends_on:
- postgres
command: "dockerize -wait tcp://postgres:5432 -timeout 10m npm run serve"
networks:
ppp-v3-network:
volumes:
db-data: