21 lines
374 B
YAML
21 lines
374 B
YAML
services:
|
|
db:
|
|
container_name: investments-db
|
|
image: postgres:15.2
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
ports:
|
|
- 5433:5432
|
|
volumes:
|
|
- postgres_data:/var/lib/posgresql/data
|
|
networks:
|
|
- investments
|
|
|
|
volumes:
|
|
postgres_data:
|
|
|
|
networks:
|
|
investments:
|