Repository navigation
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
57 lines (57 loc) · 1.72 KB
/
Copy pathcompose.dev.yml
File metadata and controls
57 lines (57 loc) · 1.72 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
qsl-redis:
ports:
- "127.0.0.1:${HOST_QSL_REDIS_PORT:-1234}:6379"
georama-db:
ports:
- "127.0.0.1:${HOST_GEORAMA_DB_PORT:-5432}:5432"
georama:
environment:
- "DEV_AUTOSTART=${GEORAMA_DEV_AUTOSTART:-1}"
- "DJANGO_CONFIGURATION=Dev"
- "GEORAMA_BASIC_AUTH_ENABLED=${GEORAMA_BASIC_AUTH_ENABLED:-True}"
- "GEORAMA_GEOGIRAFE_SUPERUSER_ENABLED=${GEORAMA_GEOGIRAFE_SUPERUSER_ENABLED:-True}"
build:
target: dev
args:
# only passed if set in the environment, otherwise the pinned default
# of the Dockerfile applies
GDAL_IMAGE:
UID: "${UID:-1000}"
GID: "${GID:-1000}"
develop:
watch:
- action: rebuild
path: Dockerfile
- action: rebuild
path: ./docker/dev.debug.entrypoint.sh
- action: rebuild
path: ./docker/dev.start.georama.sh
volumes:
- ./:/app:cached
- georama-venv:/home/appuser/.venv
- georama-static:/georama/static
georama-housekeeping:
environment:
- "DJANGO_CONFIGURATION=Dev"
# georama syncs the shared venv, a second sync at the same time would race
- "DEV_SYNC=0"
build:
target: dev
args:
# only passed if set in the environment, otherwise the pinned default
# of the Dockerfile applies
GDAL_IMAGE:
UID: "${UID:-1000}"
GID: "${GID:-1000}"
volumes:
- ./:/app:cached
- georama-venv:/home/appuser/.venv
# the venv is synced once georama is healthy, with GEORAMA_DEV_AUTOSTART=0 it never
# gets healthy, then the command is called by hand
depends_on:
georama:
condition: service_healthy
volumes:
georama-venv:
georama-static: