-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 1009 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 1009 Bytes
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
volumes:
postgres-data:
driver: local
services:
postgres:
# https://hub.docker.com/r/postgis/postgis
# arm64 image required for MacOS development
# image: postgis/postgis # not arm64 friendly https://github.com/postgis/docker-postgis/issues/216
image: imresamu/postgis:18-3.6 # arm64 # https://hub.docker.com/r/imresamu/postgis/tags
restart: always
shm_size: 1gb
environment:
# POSTGRES_PASSWORD: example
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- postgres-data:/var/lib/postgresql:cached
- .:/app:delegated
app:
build: .
depends_on:
- postgres
environment:
# https://www.postgresql.org/docs/16/libpq-envars.html
PGHOST: postgres
PGUSER: postgres
PGPASSWORD: example
env_file:
- path: ./koordinates.env
required: false
volumes:
# Mounts the app code (".") into the container's "/app" folder:
- .:/app:delegated
- /app/tmp
tty: true
stdin_open: true