mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 11:32:38 +02:00
45 lines
1 KiB
YAML
45 lines
1 KiB
YAML
services:
|
|
|
|
# Usefull only to use the real time collaboration
|
|
redis:
|
|
image: redis:latest
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
|
|
interval: 1s
|
|
timeout: 3s
|
|
retries: 5
|
|
command: ["redis-server"]
|
|
|
|
db:
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
|
interval: 2s
|
|
image: postgis/postgis:14-3.3-alpine
|
|
environment:
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
|
|
app:
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
image: umap/umap:3.0.0
|
|
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
|
|
- REALTIME_ENABLED=1
|
|
- REDIS_URL=redis://redis:6379
|
|
volumes:
|
|
- data:/srv/umap/uploads
|
|
|
|
volumes:
|
|
data:
|
|
db:
|