umap/docker-compose.yml
Jérôme Petazzoni 444d913d85 Tweak Compose file so that it works out of the box
Fix umap image reference to match the one pushed on Docker Hub.

Also change port to an env var with a default value,
so that it works out of the box but can also be easily
changed to another port if needed.
2023-06-05 17:42:08 +02:00

27 lines
537 B
YAML

version: '3'
services:
db:
image: postgis/postgis:14-3.3-alpine
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- db:/var/lib/postgresql/data
app:
image: umap/umap:1.3.2
ports:
- "${PORT-8000}:8000"
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: