version: '3.8' services: db: image: postgres:11-alpine environment: - POSTGRES_PASSWORD=abc - TZ='GMT+4' - PGTZ='GMT+4' healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 1s timeout: 5s retries: 30 spoolman: image: donkie/spoolman:test environment: - SPOOLMAN_DB_TYPE=postgres - SPOOLMAN_DB_HOST=db - SPOOLMAN_DB_PORT=5432 - SPOOLMAN_DB_NAME=postgres - SPOOLMAN_DB_USERNAME=postgres - SPOOLMAN_DB_PASSWORD=abc - SPOOLMAN_LOGGING_LEVEL=INFO # The host guard refuses public domain names it was not told about; the security # tests need one that is allowed as well as one that is not. - SPOOLMAN_ALLOWED_HOSTS=spoolman.example.com - TZ=Europe/Stockholm depends_on: db: condition: service_healthy tester: image: donkie/spoolman-tester:latest volumes: - ./tests:/tester/tests environment: - DB_TYPE=postgres depends_on: - spoolman