-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (33 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
33 lines (33 loc) · 1.23 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
# docker-compose.yml
services:
chado:
build: .
image: flybase/release-database:dev
container_name: flybase-chado
restart: unless-stopped
# PostgreSQL uses /dev/shm for parallel workers (parallel index build,
# parallel vacuum). Docker's default 64MB is not enough — `vacuumdb -z`
# after the restore fails with "could not resize shared memory segment".
shm_size: "4g"
environment:
RELEASE: "${RELEASE:-current}"
RELEASE_FILE: "${RELEASE_FILE:-}"
ports:
- "${HOST_PORT:-5432}:5432"
# Explicit public DNS so the dump-download step works reliably regardless
# of the host resolver. In particular, the AWS VPC resolver has been seen
# to intermittently return NXDOMAIN for s3ftp.flybase.org.
dns:
- 8.8.8.8
- 1.1.1.1
volumes:
# Bind mounts (not named volumes) so `docker compose down -v` cannot
# wipe the loaded database. To delete data, rm the host dirs explicitly.
- "${DATA_DIR:-./data}:/var/lib/postgresql/data"
- "${DUMP_DIR:-./dump-cache}:/tmp/dump"
healthcheck:
test: ["CMD", "/usr/local/bin/healthcheck.sh"]
interval: 30s
timeout: 5s
retries: 5
start_period: 6h # generous: full dump load can take hours