2023-06-05 07:33:26 -05:00
|
|
|
version: '3'
|
2023-06-05 10:42:08 -05:00
|
|
|
|
2023-06-05 07:33:26 -05:00
|
|
|
services:
|
2023-06-05 10:42:08 -05:00
|
|
|
|
2023-06-05 07:33:26 -05:00
|
|
|
db:
|
2023-09-16 10:12:50 -05:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
interval: 2s
|
2023-06-05 07:33:26 -05:00
|
|
|
image: postgis/postgis:14-3.3-alpine
|
|
|
|
environment:
|
|
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
|
|
volumes:
|
|
|
|
- db:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
app:
|
2023-09-16 10:12:50 -05:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2024-02-19 03:05:30 -06:00
|
|
|
image: umap/umap:2.0.2
|
2023-06-05 07:33:26 -05:00
|
|
|
ports:
|
2023-06-05 10:42:08 -05:00
|
|
|
- "${PORT-8000}:8000"
|
2023-06-05 07:33:26 -05:00
|
|
|
environment:
|
|
|
|
- DATABASE_URL=postgis://postgres@db/postgres
|
|
|
|
- SECRET_KEY=some-long-and-weirdly-unrandom-secret-key
|
|
|
|
- SITE_URL=https://umap.local/
|
|
|
|
- UMAP_ALLOW_ANONYMOUS=True
|
|
|
|
- DEBUG=1
|
|
|
|
volumes:
|
|
|
|
- data:/srv/umap/uploads
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|
|
|
|
db:
|