version: '3.8' services: api: container_name: v3-user build: dockerfile: ci/Dockerfile context: . env_file: - ci/.env.ci ports: - 5001:5001 depends_on: - db-test - broker networks: v3-network: aliases: - v3-user-api db-test: container_name: v3-user-db-test image: ${POSTGRES_IMAGE} environment: POSTGRES_DB: user POSTGRES_USER: user POSTGRES_PASSWORD: user ports: - 5601:5432 networks: v3-network: aliases: - v3-user-db-test broker: container_name: v3-broker image: ${BROKER_IMAGE} ports: - 5672:5672 networks: v3-network: aliases: - v3-broker networks: v3-network: name: v3-network driver: bridge