46 lines
902 B
YAML
46 lines
902 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
api:
|
|
container_name: ${SERVICE_CONTAINER}
|
|
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}"
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
v3-network:
|
|
aliases:
|
|
- v3-auth-api
|
|
|
|
db:
|
|
container_name: ${POSTGRES_CONTAINER}
|
|
image: ${POSTGRES_IMAGE}
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
ports:
|
|
- "${POSTGRES_PORT:-5502}:5432"
|
|
volumes:
|
|
- .postgresql:/var/lib/postgresql/data:rw
|
|
networks:
|
|
v3-network:
|
|
aliases:
|
|
- v3-auth-db
|
|
|
|
networks:
|
|
v3-network:
|
|
name: v3-network
|
|
driver: bridge
|
|
external: true
|
|
|