user/docker-compose.yml

72 lines
1.3 KiB
YAML
Raw Normal View History

2022-12-13 14:27:28 +00:00
version: '3.8'
services:
2023-02-28 10:19:28 +00:00
v3-user-api:
container_name: v3-user-api
2022-12-13 14:27:28 +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:49 +00:00
- ${SERVICE_PORT:-5001}:${SERVICE_PORT:-5001}
2022-12-13 14:27:28 +00:00
depends_on:
- db
networks:
2022-12-15 16:14:50 +00:00
v3-network:
aliases:
- v3-user-api
2022-12-13 14:27:28 +00:00
2023-02-28 10:19:28 +00:00
v3-user-redis:
2023-01-26 15:48:47 +00:00
container_name: v3-user-redis
image: ${REDIS_IMAGE}
ports:
2023-01-30 13:33:08 +00:00
- 6501:6379
2023-01-30 15:11:20 +00:00
volumes:
- .redis_data:/data
2023-01-26 15:48:47 +00:00
env_file:
- .env
networks:
v3-network:
aliases:
- v3-user-redis
2023-02-28 10:19:28 +00:00
v3-user-db:
2023-01-05 15:17:37 +00:00
container_name: v3-user-db
2022-12-13 14:27:28 +00:00
image: ${POSTGRES_IMAGE}
environment:
2023-01-05 15:17:37 +00:00
POSTGRES_DB: user
POSTGRES_USER: user
POSTGRES_PASSWORD: user
2022-12-13 14:27:28 +00:00
ports:
2023-01-05 15:17:37 +00:00
- 5501:5432
2022-12-13 14:27:28 +00:00
volumes:
2022-12-26 08:45:20 +00:00
- .postgresql:/var/lib/postgresql/data:rw
2022-12-13 14:27:28 +00:00
networks:
2022-12-15 16:14:50 +00:00
v3-network:
aliases:
- v3-user-db
2022-12-13 14:27:28 +00:00
2023-02-28 10:19:28 +00:00
v3-user-db-test:
2023-01-05 15:17:37 +00:00
container_name: v3-user-db-test
image: ${POSTGRES_IMAGE}
environment:
POSTGRES_DB: user
POSTGRES_USER: user
POSTGRES_PASSWORD: user
ports:
- 5601:5432
networks:
v3-network:
aliases:
- v3-user-db-test
2022-12-13 14:27:28 +00:00
networks:
2022-12-15 16:14:50 +00:00
v3-network:
name: v3-network
2022-12-26 08:45:20 +00:00
external: true