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.staging-build.yml
mifi ca6a6a9ab3
All checks were successful
continuous-integration/drone/push Build is passing
Bringing back the mongo build stage...
2023-05-11 20:02:53 -04:00

55 lines
1.7 KiB
YAML

version: '3.8'
services:
auth-service_mongo:
container_name: ${CONTAINER_PREFIX:-staging}-auth-service_mongo
env_file:
- staging.env
build:
context: .
target: database
args:
- MONGO_VERSION
networks:
- docknet
volumes:
- 'auth-db:/data/db'
- 'auth-db:/data/configdb'
# - '/volume1/docker/beethoven/labs-auth/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro'
restart: unless-stopped
image: mongo:${MONGO_VERSION:-latest}
auth-service:
container_name: ${CONTAINER_PREFIX:-staging}-auth-service
env_file:
- staging.env
build:
context: .
target: containerize
args:
- PORT
- ENV
environment:
- DB_HOST=${CONTAINER_PREFIX:-staging}-auth-service_mongo
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.grow.rule=Host(`${HOST}`) && Path(`${ROUTE_PREFIX}`)'
- 'traefik.http.routers.grow.entrypoints=websecure'
- 'traefik.http.routers.grow.tls=true'
- 'traefik.http.routers.grow.tls.certresolver=letsencrypt'
- 'traefik.http.routers.grow.service=grow-service'
- 'traefik.http.services.grow-service.loadbalancer.server.port=${PORT}'
networks:
- docknet
restart: unless-stopped
image: node:20-alpine
depends_on:
- auth-service_mongo
networks:
docknet:
name: docknet
external: true
volumes:
auth-db:
external: false