-
Notifications
You must be signed in to change notification settings - Fork 35
/
.test-compose.yml
44 lines (42 loc) · 1.16 KB
/
.test-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
services:
ghsci:
image: globalhealthyliveablecities/global-indicators:v4.6.0
container_name: ghsci
shm_size: 2g
stdin_open: true # docker run -i
tty: false # Github Actions can't use tty cli, causes error
command: ["/bin/bash", "-c", 'sleep 3 && python -m unittest -v ./tests/tests.py']
working_dir: /home/ghsci/process
ports:
- "8080:8080" # for nicegui and html
- "8888:8888" # for jupyterlab
volumes:
- ./:/home/ghsci
user: "${UID}:${GID}"
extra_hosts:
- "gateway.docker.internal:host-gateway"
depends_on:
pgrouting:
condition: service_healthy
links:
- pgrouting
pgrouting:
image: pgrouting/pgrouting
container_name: ghscic_postgis
command: postgres -c port=5433
restart: unless-stopped
ports:
- "5433:5433"
volumes:
- db-data:/var/lib/postgis:/postgresql/13/main
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ]
interval: 5s
timeout: 5s
retries: 5
environment:
POSTGRES_PASSWORD: ghscic
POSTGRES_HOST: ghscic_postgis
PGPORT: 5433
volumes:
db-data: