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