--- version: '3' services: sahana: build: sahana image: sahana:1.0.3-220306 restart: unless-stopped depends_on: - sahana-postgres env_file: - .env expose: - 8080 ports: - 8080:8080 volumes: - sahana_databases:/srv/web2py/applications/eden/databases - sahana_errors:/srv/web2py/applications/eden/errors - sahana_sessions:/srv/web2py/applications/eden/sessions - sahana_uploads:/srv/web2py/applications/eden/uploads sahana-postgres: image: postgis/postgis:13-3.2-alpine restart: unless-stopped environment: - POSTGRES_USER - POSTGRES_PASSWORD - POSTGRES_DB volumes: - postgres_data:/var/lib/postgresql/data volumes: sahana_databases: sahana_errors: sahana_sessions: sahana_uploads: postgres_data: