forked from tzConnectBerlin/veri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (64 loc) · 1.51 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
60
61
62
63
64
65
66
67
68
69
version: '3.8'
services:
db:
container_name: postgres
restart: unless-stopped
image: postgres
env_file: .env
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- ./data/db:/var/lib/postgresql/data
backend:
container_name: veri-backend
restart: unless-stopped
build:
context: veri-backend/
target: production-build-stage
dockerfile: Dockerfile
env_file: .env
environment:
PORT: 5000
volumes:
- ./data/backend:/data
ports:
- 127.0.0.1:5100:5000
depends_on:
- db
peppermint:
image: peppermint
container_name: peppermint
restart: unless-stopped
stop_signal: SIGINT
env_file: .env
entrypoint: ["./entry_point.sh"]
depends_on:
- db
peppermintery:
image: peppermintery
container_name: peppermintery
restart: unless-stopped
env_file: .env
entrypoint: |-
sh -c '
set -e
echo "$PEPPERMINTERY_CONFIG" > config.json
psql -d "${DB_PROTOCOL}://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_DATABASE}" < dataaccess/create.sql
node worker/main.mjs &
node endpoint/svc.mjs
'
depends_on:
- db
frontend:
container_name: veri-frontend
restart: unless-stopped
build:
context: veri-frontend/
args:
- REACT_APP_BASE_URL=http://localhost:5100/api
ports:
- 127.0.0.1:80:80
depends_on:
- backend