add homework 6.2 task 1-2

This commit is contained in:
2022-05-23 12:33:35 +07:00
parent cf6348de9d
commit 5f8b131742
4 changed files with 249 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
version: '3.8'
services:
postgres:
image: postgres:12.11-alpine
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: 123
POSTGRES_DB: test_db
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "25432:5432"
volumes:
- netology_pgdata:/var/lib/postgresql/data/pgdata
- netology_pgdump:/opt/pgdump
volumes:
netology_pgdata:
netology_pgdump: