version: '3.3' services: postgres: image: postgres:14.1-alpine restart: always environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres logging: options: max-size: 10m max-file: "3" ports: # database port is exposed in development, but closed off in production - "5432:5432" volumes: - "./build/postgres:/var/lib/postgresql/data" schedge: platform: linux/amd64 build: context: . dockerfile: ./src/build/Dockerfile restart: "no" environment: - DB_USERNAME=postgres - DB_PASSWORD=postgres - SCHEDGE_ADMIN_PASSWORD=schedge:admin - JDBC_URL=jdbc:postgresql://postgres/postgres ports: - "4358:4358" volumes: - "./:/home/user" labels: - "com.centurylinklabs.watchtower.enable=true" - "com.centurylinklabs.watchtower.stop-signal=SIGKILL" watchtower: image: containrrr/watchtower:1.4.0 volumes: - /var/run/docker.sock:/var/run/docker.sock command: --interval 1 --cleanup --label-enable --no-pull restart: unless-stopped