You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
geodata-catalog/docker/docker-compose.yml

59 lines
1.3 KiB

version: "3"
services:
geodata:
image: geoshop-backend
build:
context: ../backend/src/
dockerfile: ../../docker/Dockerfile.backend
volumes:
- tmp_vol:/tmp
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
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