DockerProject/docker-compose.yml

23 lines
416 B
YAML
Raw Normal View History

2024-04-22 13:04:31 +04:00
version: '3.8'
services:
app:
image: ujijrujijr/os_lab5
#build: . # для сборки проекта из соседнего Dockerfile
ports:
2024-04-25 23:44:40 +04:00
- "80:8080"
2024-04-22 13:04:31 +04:00
depends_on:
- db
db:
image: postgres:13
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=dbname
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data: