72 lines
1.3 KiB
YAML
72 lines
1.3 KiB
YAML
|
version: '3.8'
|
||
|
|
||
|
services:
|
||
|
api:
|
||
|
container_name: v3-territory
|
||
|
build:
|
||
|
dockerfile: Dockerfile
|
||
|
context: .
|
||
|
target: development
|
||
|
volumes:
|
||
|
- .:/usr/src/app
|
||
|
env_file:
|
||
|
- .env
|
||
|
command: npm run start:dev
|
||
|
ports:
|
||
|
- ${SERVICE_PORT:-5004}:${SERVICE_PORT:-5004}
|
||
|
depends_on:
|
||
|
- db
|
||
|
networks:
|
||
|
v3-network:
|
||
|
aliases:
|
||
|
- v3-territory-api
|
||
|
|
||
|
redis:
|
||
|
container_name: v3-territory-redis
|
||
|
image: ${REDIS_IMAGE}
|
||
|
ports:
|
||
|
- 6504:6379
|
||
|
volumes:
|
||
|
- .redis_data:/data
|
||
|
env_file:
|
||
|
- .env
|
||
|
networks:
|
||
|
v3-network:
|
||
|
aliases:
|
||
|
- v3-territory-redis
|
||
|
|
||
|
db:
|
||
|
container_name: v3-territory-db
|
||
|
image: ${POSTGRES_IMAGE}
|
||
|
environment:
|
||
|
POSTGRES_DB: territory
|
||
|
POSTGRES_USER: territory
|
||
|
POSTGRES_PASSWORD: territory
|
||
|
ports:
|
||
|
- 5504:5432
|
||
|
volumes:
|
||
|
- .postgresql:/var/lib/postgresql/data:rw
|
||
|
networks:
|
||
|
v3-network:
|
||
|
aliases:
|
||
|
- v3-territory-db
|
||
|
|
||
|
db-test:
|
||
|
container_name: v3-territory-db-test
|
||
|
image: ${POSTGRES_IMAGE}
|
||
|
environment:
|
||
|
POSTGRES_DB: territory
|
||
|
POSTGRES_USER: territory
|
||
|
POSTGRES_PASSWORD: territory
|
||
|
ports:
|
||
|
- 5604:5432
|
||
|
networks:
|
||
|
v3-network:
|
||
|
aliases:
|
||
|
- v3-territory-db-test
|
||
|
|
||
|
networks:
|
||
|
v3-network:
|
||
|
name: v3-network
|
||
|
external: true
|