configuration/docker-compose.yml

58 lines
1.2 KiB
YAML
Raw Normal View History

2023-01-25 14:16:13 +00:00
version: '3.8'
services:
2023-02-28 09:56:39 +00:00
v3-configuration-api:
container_name: v3-configuration-api
2023-01-25 14:16:13 +00:00
build:
dockerfile: Dockerfile
context: .
target: development
volumes:
- .:/usr/src/app
env_file:
- .env
command: npm run start:dev
ports:
- ${SERVICE_PORT:-5003}:${SERVICE_PORT:-5003}
depends_on:
2023-02-28 10:43:12 +00:00
- v3-configuration-db
2023-01-25 14:16:13 +00:00
networks:
v3-network:
aliases:
- v3-configuration-api
2023-02-28 09:56:39 +00:00
v3-configuration-db:
2023-01-25 14:16:13 +00:00
container_name: v3-configuration-db
image: ${POSTGRES_IMAGE}
environment:
POSTGRES_DB: configuration
POSTGRES_USER: configuration
POSTGRES_PASSWORD: configuration
ports:
- 5503:5432
volumes:
- .postgresql:/var/lib/postgresql/data:rw
networks:
v3-network:
aliases:
- v3-configuration-db
2023-02-28 09:56:39 +00:00
v3-configuration-db-test:
2023-01-25 14:16:13 +00:00
container_name: v3-configuration-db-test
image: ${POSTGRES_IMAGE}
environment:
POSTGRES_DB: configuration
POSTGRES_USER: configuration
POSTGRES_PASSWORD: configuration
ports:
- 5603:5432
networks:
v3-network:
aliases:
- v3-configuration-db-test
networks:
v3-network:
name: v3-network
external: true