version: '3.9' services: frontend: build: context: frontend image: ghcr.io/modul-i-ch-109/counter_kand/counter_frontend:latest ports: - 3100:3100 - 3000:3000 environment: BACKEND_URL: ${BACKEND_URL:-http://localhost:8080} backend: build: context: backend image: ghcr.io/modul-i-ch-109/counter_kand/counter_backend:latest ports: - 8080:8080 environment: NODE_ENV: production DB_HOST: db DB_NAME: counter DB_USER: postgres DB_PASSWORD: password PASSPHRASE: secret depends_on: - db db: image: postgres:14 ports: - 5432:5432 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: password POSTGRES_DB: counter pgadmin: image: dpage/pgadmin4 ports: - 8083:80 environment: PGADMIN_DEFAULT_EMAIL: admin@admin.com PGADMIN_DEFAULT_PASSWORD: root depends_on: - db