umap/docker-compose.yml
2021-10-04 12:10:08 +02:00

29 lines
674 B
YAML

version: '3'
services:
db:
image: mdillon/postgis:9.6-alpine
volumes:
- ./db:/var/lib/postgresql/data
redis:
image: redis:latest
app:
image: umap:latest
environment:
- DATABASE_URL=postgis://postgres@db/postgres
- REDIS_URL=redis://redis:6379/0
- ADMIN_EMAIL=umap
- ENABLE_ACCOUNT_LOGIN=True
- SECRET_KEY=some-long-and-weirdly-unrandom-secret-key
- ALLOWED_HOSTS=*
- SITE_URL=http://localhost/
- LEAFLET_STORAGE_ALLOW_ANONYMOUS=True
volumes:
- ./uploads:/srv/umap/uploads
- ./static:/srv/umap/static
ports:
- 8000:8000
depends_on:
- db
restart: always