forked from getodk/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (35 loc) · 1023 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
# This docker-compose file will deploy the latest tagged images from ghcr.io,
# which are built and pushed whenever a new Git tag is pushed to GitHub.
# Use this file to deploy ODK Build to a staging or production server.
# Run: docker-compose up -d
version: "3"
services:
postgres:
image: "postgres:14.1"
volumes:
- odkbuild:/var/lib/postgresql/data
- ./transfer:/var/transfer:rw
environment:
POSTGRES_USER: odkbuild
POSTGRES_PASSWORD: odkbuild
POSTGRES_DATABASE: odkbuild
restart: always
odkbuild2xlsform:
image: "ghcr.io/getodk/build2xlsform:1.9"
ports:
- "8686:8686"
odkbuild:
image: "ghcr.io/getodk/build:0.4.2"
depends_on:
- postgres
- odkbuild2xlsform
command: [ "./contrib/wait-for-it.sh", "postgres:5432", "--", "./start-odkbuild.sh" ]
ports:
- "9393:9393"
restart: always
logging:
driver: local
# healthcheck:
# test: [ "CMD-SHELL", "nc -z localhost 9393 || exit 1" ]
volumes:
odkbuild: