Marble/docker-compose.yaml

40 lines
681 B
YAML
Raw Normal View History

2024-10-05 19:53:31 +04:00
version: '3.9'
services:
db:
image: postgres:17.0
container_name: postgres-database
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
backend:
aliases:
- "db"
back:
build:
dockerfile: Dockerfile
container_name: persistence
ports:
- "8000:8000"
volumes:
- .:/app
networks:
backend:
aliases:
- "back"
networks:
backend:
driver: bridge
volumes:
postgres_data: