version: "3" services: geodata: image: geoshop-backend build: context: ../backend/src/ dockerfile: ../../docker/Dockerfile.backend volumes: - tmp_vol:/tmp environment: - SECRET_KEY="iYg7wB+sPihtjz50iJTsD0XmOeUwKy2TJtfNLcqFRM8=" postgres: image: "postgis/postgis:13-3.2" environment: POSTGRES_USER: "geodata" POSTGRES_DB: "geodata" POSTGRES_PASSWORD: "QAKvBKvLe4bS9U" # TODO: change to real password volumes: - geodata_db:/var/lib/postgresql/data martin: image: "urbica/martin:pr-368" environment: DATABASE_URL: "postgres://geodata:QAKvBKvLe4bS9U@postgres/geodata" # TODO: change to real password restart: unless-stopped frontend: image: geoshop-frontend build: context: ../frontend/ dockerfile: ../docker/Dockerfile.frontend ports: - "80:80" volumes: - caddy_data:/data - caddy_config:/config - ../caddy:/etc/caddy - ../previews:/srv environment: - SECRET_KEY="iYg7wB+sPihtjz50iJTsD0XmOeUwKy2TJtfNLcqFRM8=" pgweb: restart: always image: sosedoff/pgweb:0.11.12 ports: - "8081:8081" environment: DATABASE_URL: "postgres://geodata:QAKvBKvLe4bS9U@postgres/geodata?sslmode=disable" # TODO: change to real password volumes: geodata_db: caddy_config: caddy_data: external: true tmp_vol: driver_opts: type: tmpfs device: tmpfs