services: frontend: build: context: ./frontend ports: - 80:80 backend: build: context: ./backend ports: - 9000:9000 keycloak: image: quay.io/keycloak/keycloak:latest container_name: keycloak environment: - KC_DB=postgres - KC_DB_URL=jdbc:postgresql://db:5432/keycloak - KC_DB_USERNAME=keycloak - KC_DB_PASSWORD=keycloakpassword - KEYCLOAK_ADMIN=admin - KEYCLOAK_ADMIN_PASSWORD=adminpassword - KEYCLOAK_FRONTEND_URL=http://localhost/auth ports: - "3000:8080" command: start-dev depends_on: - db db: image: postgres:15 container_name: keycloak-db environment: POSTGRES_DB: keycloak POSTGRES_USER: keycloak POSTGRES_PASSWORD: keycloakpassword volumes: - keycloak-data:/var/lib/postgresql/data ports: - "5432:5432" volumes: keycloak-data: