version: '3.8' services: auth-service_mongo: env_file: .env.dev container_name: ${CONTAINER_PREFIX}-auth-service_mongo build: context: . target: database args: MONGO_VERSION: 6.0.5 ports: - 27017:27017 networks: - backend volumes: - auth-db:/data/db - auth-db:/data/configdb restart: unless-stopped image: ${CONTAINER_PREFIX}-auth-service_mongo:${TAG:-latest} auth-service: env_file: .env.dev build: context: . target: containerize args: - PORT - ENV - NPM_TOKEN - YARN_VERSION=3.5.0 container_name: ${CONTAINER_PREFIX}-auth-service ports: - 9001:9001 environment: - DB_HOST=${CONTAINER_PREFIX}-auth-service_mongo networks: - labs-net - backend restart: unless-stopped image: ${CONTAINER_PREFIX}-auth-service:${TAG:-latest} depends_on: - auth-service_mongo networks: backend: name: backend labs-net: name: labs-net volumes: auth-db: external: false