auth/docker-compose.yml

76 lines
1.4 KiB
YAML
Raw Normal View History

2022-12-15 09:59:45 +00:00
version: '3.8'
services:
2023-02-28 09:46:03 +00:00
v3-auth-api:
container_name: v3-auth-api
2022-12-15 09:59:45 +00:00
build:
dockerfile: Dockerfile
context: .
target: development
volumes:
- .:/usr/src/app
env_file:
- .env
command: npm run start:dev
ports:
2023-01-06 13:37:26 +00:00
- ${SERVICE_PORT:-5002}:${SERVICE_PORT:-5002}
2022-12-15 09:59:45 +00:00
depends_on:
2023-02-28 10:42:35 +00:00
- v3-auth-db
2022-12-15 09:59:45 +00:00
networks:
2022-12-16 15:46:14 +00:00
v3-network:
aliases:
- v3-auth-api
2022-12-15 09:59:45 +00:00
2023-02-28 09:46:03 +00:00
v3-auth-db:
2023-01-06 13:37:26 +00:00
container_name: v3-auth-db
2022-12-15 09:59:45 +00:00
image: ${POSTGRES_IMAGE}
environment:
2023-01-06 13:37:26 +00:00
POSTGRES_DB: auth
POSTGRES_USER: auth
POSTGRES_PASSWORD: auth
2022-12-15 09:59:45 +00:00
ports:
2023-01-06 13:37:26 +00:00
- 5502:5432
2022-12-15 09:59:45 +00:00
volumes:
2022-12-26 08:42:49 +00:00
- .postgresql:/var/lib/postgresql/data:rw
2022-12-15 09:59:45 +00:00
networks:
2022-12-16 15:46:14 +00:00
v3-network:
aliases:
- v3-auth-db
2022-12-15 09:59:45 +00:00
2023-02-28 09:46:03 +00:00
v3-auth-db-test:
2023-01-06 13:37:26 +00:00
container_name: v3-auth-db-test
image: ${POSTGRES_IMAGE}
environment:
POSTGRES_DB: auth
POSTGRES_USER: auth
POSTGRES_PASSWORD: auth
ports:
- 5602:5432
networks:
v3-network:
aliases:
- v3-auth-db-test
2023-02-28 09:46:03 +00:00
v3-auth-opa:
container_name: v3-auth-opa
image: ${OPA_IMAGE}
ports:
- 8181:8181
command:
2023-02-28 09:46:03 +00:00
- 'run'
- '--server'
- '--log-format=json-pretty'
- '--set=decision_logs.console=true'
- './policies/'
volumes:
- ./opa:/policies
networks:
v3-network:
aliases:
2023-02-28 09:46:03 +00:00
- v3-auth-opa
2022-12-15 09:59:45 +00:00
networks:
2022-12-16 15:46:14 +00:00
v3-network:
name: v3-network
2022-12-26 08:42:49 +00:00
external: true