auth/docker-compose.yml

45 lines
874 B
YAML

version: '3.8'
services:
v3-auth-api:
container_name: v3-auth-api
build:
dockerfile: Dockerfile
context: .
target: development
volumes:
- .:/usr/src/app
env_file:
- .env
command: npm run start:dev
ports:
- ${SERVICE_PORT:-5002}:${SERVICE_PORT:-5002}
- ${HEALTH_SERVICE_PORT:-6002}:${HEALTH_SERVICE_PORT:-6002}
networks:
v3-network:
aliases:
- v3-auth-api
v3-auth-opa:
container_name: v3-auth-opa
image: ${OPA_IMAGE}
ports:
- 8181:8181
command:
- 'run'
- '--server'
- '--log-format=json-pretty'
- '--set=decision_logs.console=true'
- './policies/'
volumes:
- ./opa:/policies
networks:
v3-network:
aliases:
- v3-auth-opa
networks:
v3-network:
name: v3-network
external: true