version: '3' services: db: healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 2s # check https://hub.docker.com/r/postgis/postgis to see available versions 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 image: umap/umap:latest ports: # modify the external port (8001, on the left) if desired, but make sure it matches SITE_URL, below - "8001:8000" environment: - DATABASE_URL=postgis://postgres@db/postgres - SECRET_KEY=some-long-and-weirdly-unrandom-secret-key - SITE_URL=https://localhost:8001/ - UMAP_ALLOW_ANONYMOUS=True - DEBUG=1 - STATIC_ROOT=/srv/umap/static - MEDIA_ROOT=/srv/umap/uploads volumes: - umap_userdata:/srv/umap/uploads # FIX the path on the left, below, to your location # OPTIONAL, you can comment the line below out for default # values to apply - /home/ubuntu/umap.conf:/etc/umap/umap.conf volumes: umap_userdata: db: