volumes: postgres-data: driver: local services: postgres: image: postgres:alpine restart: unless-stopped environment: - POSTGRES_PASSWORD=password volumes: - postgres-data:/var/lib/postgresql/data deploy: resources: limits: cpus: 1.00 memory: 256M healthcheck: test: ["CMD", "pg_isready", "-U", "postgres"] interval: 30s timeout: 60s retries: 5 start_period: 5s intrasys: image: gitea.woggioni.net/woggioni/intrasys:latest environment: - PGHOST=postgres - PGUSER=postgres - PGPASSWORD=password - INTRASYS_LOG=trace ports: - "127.0.0.1:8080:8080" deploy: resources: limits: cpus: 1.00 memory: 32M depends_on: postgres: condition: service_healthy