services: postgres: image: postgres:16-alpine restart: unless-stopped environment: POSTGRES_USER: mremotify POSTGRES_PASSWORD: mremotify POSTGRES_DB: mremotify volumes: - postgres_data:/var/lib/postgresql/data networks: - internal healthcheck: test: ['CMD-SHELL', 'pg_isready -U mremotify'] interval: 5s timeout: 5s retries: 10 guacd: image: guacamole/guacd:latest restart: unless-stopped environment: GUACD_LOG_LEVEL: debug networks: - internal backend: build: context: . dockerfile: docker/backend.Dockerfile restart: unless-stopped env_file: .env environment: POSTGRES_URL: postgresql://mremotify:mremotify@postgres:5432/mremotify GUACD_HOST: guacd GUACD_PORT: '4822' depends_on: postgres: condition: service_healthy guacd: condition: service_started networks: - internal frontend: build: context: . dockerfile: docker/frontend.Dockerfile restart: unless-stopped ports: - '80:80' depends_on: - backend networks: - internal networks: internal: volumes: postgres_data: