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.yml
mifi cdd6c6a72a
Some checks failed
continuous-integration/drone/push Build encountered an error
Dammit
2023-05-06 10:12:30 -04:00

44 lines
1.5 KiB
YAML

version: '3.8'
services:
auth-service_mongo:
container_name: ${CONTAINER_PREFIX:-mifi}-auth-service_mongo
build:
args:
- CONTAINER_PREFIX=${CONTAINER_PREFIX}
env_file: staging.env
networks:
- docknet
volumes:
- '/volume1/docker/labs/auth/mongo:/data/db'
restart: unless-stopped
image: mongo:latest
auth-service:
env_file: staging.env
build:
context: .
args:
- DB_HOST=${CONTAINER_PREFIX:-mifi}-auth-service_mongo
- HOST=${HOST}
- PORT=${PORT}
- ROUTE_PREFIX=${ROUTE_PREFIX}
- CONTAINER_PREFIX=${CONTAINER_PREFIX}
container_name: ${CONTAINER_PREFIX:-mifi}-auth-service
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