forked from getodk/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
39 lines (39 loc) · 1.2 KB
/
docker-compose.dev.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
# This docker-compose file will deploy the latest tagged image for build2xlsform from ghcr.io,
# and build the local version of ODK Build from the Dockerfile.
# Use this file to test ODK Build during development.
# Run: docker-compose -f docker-compose.dev.yml up -d --build
# The bind mount "transfer" serves to transfer database snapshots in and out of the container.
# This is useful to migrate deployment from source to docker-compose.
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:master"
ports:
- "8686:8686"
odkbuild:
build:
context: .
dockerfile: Dockerfile
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: