version: '3.7' services: test-db: container_name: test-db image: docker.io/postgres restart: always ports: - 5432:5432 environment: POSTGRES_DB: test POSTGRES_USER: test POSTGRES_PASSWORD: test command: - "postgres" - "-c" - "wal_level=logical" volumes: - pgdata:/var/lib/postgresql/data - ./docker/db:/docker-entrypoint-initdb.d test-memcached: container_name: test-memcached image: memcached test-sogo: container_name: test-sogo depends_on: - test-db - test-memcached build: context: test-sogo ports: # http://localhost:8081/SOGo - 8081:80 test-keycloak: container_name: keycloak depends_on: - test-db build: context: test-keycloak ports: - 8088:8080 environment: KC_DB: postgres KC_DB_URL: jdbc:postgresql://test-db:5432/test?currentSchema=keycloak KC_DB_USERNAME: test KC_DB_PASSWORD: test KEYCLOAK_FRONTEND_URL: http://localhost:8088/auth KEYCLOAK_HOSTNAME_URL: http://test-keycloak:8080 KEYCLOAK_ADMIN: admin KEYCLOAK_ADMIN_PASSWORD: admin security_opt: - 'label:disable' command: [ "start-dev", "--db=postgres" , "--import-realm" ] volumes: pgdata: