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 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 networks: v3-network: name: v3-network driver: bridge