# For prebuilt, production environments services: database: image: docker.io/library/couchdb:3.3 environment: - COUCHDB_USER=${FLOHMARKT_DB_USER} - COUCHDB_PASSWORD=${FLOHMARKT_DB_PASSWORD} volumes: - ./couchdb_data:/opt/couchdb/data healthcheck: test: ["CMD", "curl", "--fail", "http://localhost:5984"] interval: 10s timeout: 5s retries: 3 restart: "always" init: command: initdb image: codeberg.org/flohmarkt/flohmarkt:0.20.0 env_file: - .env volumes: - ./flohmarkt_data:/var/lib/flohmarkt - ./flohmarkt.conf:/etc/flohmarkt/flohmarkt.conf:rw depends_on: database: condition: service_healthy restart: "no" web: command: web image: codeberg.org/flohmarkt/flohmarkt:latest env_file: - .env volumes: - ./flohmarkt_data:/var/lib/flohmarkt ports: - "8000:8000" depends_on: database: condition: service_healthy init: condition: service_completed_successfully restart: "always" volumes: couchdb_data: flohmarkt_data: