version: "3" services: devcontainer: container_name: devcontainer build: context: . dockerfile: Dockerfile postgres: container_name: zipline-database image: postgres:16 restart: unless-stopped environment: POSTGRES_USER: zipline POSTGRES_PASSWORD: zipline POSTGRES_DATABASE: zipline volumes: - pg_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 zipline: container_name: zipline image: ghcr.io/diced/zipline:v4 environment: CORE_SECRET: "secret" CORE_PORT: 3001 CORE_HOSTNAME: 0.0.0.0 DATABASE_URL: postgres://zipline:zipline@postgres:5432/zipline DATASOURCE_TYPE: local DATASOURCE_LOCAL_DIRECTORY: /zipline/uploads ports: - "3001:3001" restart: unless-stopped volumes: - data:/zipline/public - themes:/zipline/themes - uploads:/zipline/uploads depends_on: - "postgres" healthcheck: test: ["CMD-SHELL", "wget -q --spider http://localhost:3001 || exit 1"] interval: 10s timeout: 5s retries: 5 volumes: pg_data: data: themes: uploads: