This repository has been archived on 2023-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
auth/docker-compose.dev.yml
mifi 8f20452e1a
All checks were successful
continuous-integration/drone/push Build is passing
Sigh...
2023-05-10 11:47:08 -04:00

43 lines
1.0 KiB
YAML

version: '3.8'
services:
auth-service_mongo:
env_file: .env.dev
container_name: ${CONTAINER_PREFIX:-dev}-auth-service_mongo
ports:
- 27017:27017
networks:
- backend
volumes:
- auth-db:/data/db
- auth-db:/data/configdb
- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
restart: unless-stopped
image: mongo:latest
auth-service:
env_file: .env.dev
build:
context: .
args:
- PORT
- ENV
container_name: ${CONTAINER_PREFIX:-dev}-auth-service
ports:
- 9001:9001
environment:
- DB_HOST=${CONTAINER_PREFIX:-dev}-auth-service_mongo
networks:
- labs-net
- backend
restart: unless-stopped
image: node:20-alpine
depends_on:
- auth-service_mongo
networks:
labs-net:
name: labs-net
volumes:
auth-db:
external: true