-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (55 loc) · 1.92 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- GIT_COMMIT
- BUILD_TIMESTAMP
- RELEASE_VERSION
image: luontola/territory-bro
platform: linux/amd64
environment:
DEV: true
PUBLIC_URL: http://localhost:8080
DATABASE_URL: jdbc:postgresql://db:5432/territorybro?user=territorybro&password=territorybro
GIS_DATABASE_HOST: localhost
AUTH0_DOMAIN: luontola.eu.auth0.com
AUTH0_CLIENT_ID: 8tVkdfnw8ynZ6rXNndD6eZ6ErsHdIgPi
AUTH0_CLIENT_SECRET: nS2e4VPlaXyKuYwbsZ75NFXP6TMQ075HZ6cVu_bEasR8rXF8ggMrU5hCP3x7zmgE
SUPER_USERS: developer
SUPPORT_EMAIL: [email protected]
DEMO_CONGREGATION:
mem_reservation: 500m
mem_limit: 500m
ports:
- "127.0.0.1:8080:8080"
# TODO: official arm64 build of postgis - currently using test builds
# https://github.com/postgis/docker-postgis/issues/216#issuecomment-2016916803
# https://github.com/postgis/docker-postgis/pull/356
# https://hub.docker.com/r/imresamu/postgis/tags
db:
image: imresamu/postgis:16-3.4
environment:
POSTGRES_USER: territorybro
POSTGRES_PASSWORD: territorybro
volumes:
- postgres-storage:/var/lib/postgresql/data
- ./postgres-init.sql:/docker-entrypoint-initdb.d/postgres-init.sql
# Shared memory limit 128MB as recommended in https://registry.hub.docker.com/_/postgres
# and matching the default shared_buffers in https://www.postgresql.org/docs/current/runtime-config-resource.html#RUNTIME-CONFIG-RESOURCE-MEMORY
shm_size: 128mb
# Not setting mem_limit, to avoid Docker killing the process unnecessarily
mem_reservation: 250m
ports:
- "127.0.0.1:5432:5432"
pgadmin:
image: dpage/pgadmin4:4.18
environment:
PGADMIN_DEFAULT_EMAIL: admin@localhost
PGADMIN_DEFAULT_PASSWORD: secret
mem_limit: 500m
ports:
- "127.0.0.1:8082:80"
volumes:
postgres-storage: