-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 1.13 KB
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
services:
schematron-worker:
build:
context: .
dockerfile: schematron-worker/Dockerfile
environment:
- NATS_URL=nats://qwacback:${NATS_PORT:-4222}
- NATS_TOKEN=${NATS_TOKEN:-changeme}
- SCHEMATRON_PATH=${SCHEMATRON_PATH:-/app/schematron/ddi_custom_rules.sch}
- XSD_PATH=${XSD_PATH:-/app/xml/codebook.xsd}
depends_on:
- qwacback
restart: always
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
qwacback:
build: .
ports:
- "${PB_PORT:-8090}:8080"
- "${NATS_PORT:-4222}:${NATS_PORT:-4222}"
environment:
- PB_ADMIN_EMAIL=${PB_ADMIN_EMAIL:-admin@example.com}
- PB_ADMIN_PASSWORD=${PB_ADMIN_PASSWORD:-yourpassword123}
- PB_USER_EMAIL=${PB_USER_EMAIL:-user@example.com}
- PB_USER_PASSWORD=${PB_USER_PASSWORD:-userpassword123}
- GOMEMLIMIT=${GOMEMLIMIT:-512MiB}
- NATS_PORT=${NATS_PORT:-4222}
- NATS_TOKEN=${NATS_TOKEN:-changeme}
restart: always
command: ["./qwacback", "serve", "--http=0.0.0.0:8080"]
deploy:
resources:
limits:
memory: 768M
cpus: '1.0'