version: "3" services: postgres: image: postgres:9.5 volumes: - /var/lib/postgresql/data environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres restart: always cachet: build: context: . args: - cachet_ver=master ports: - 80:8000 links: - postgres:postgres environment: - DB_DRIVER=pgsql - DB_HOST=postgres - DB_PORT=5432 - DB_DATABASE=postgres - DB_USERNAME=postgres - DB_PASSWORD=postgres - DB_PREFIX=chq_ - APP_KEY=${APP_KEY:-null} - DEBUG=false depends_on: - postgres restart: always