Skip to content

Commit 9c1c5ce

Browse files
author
zahar.kalosha
committed
Add docker-compose.yml
That done for automation of creation postgres container and volume
1 parent 9680865 commit 9c1c5ce

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: '3.5'
2+
3+
services:
4+
postgres-automaton:
5+
container_name: postgres_demo_application
6+
image: postgres:latest
7+
ports:
8+
- "5432:5432"
9+
environment:
10+
POSTGRES_USER: ${DB_USER}
11+
POSTGRES_PASSWORD: ${DB_PASSWORD}
12+
PGDATA: /data/postgres
13+
volumes:
14+
- ./postgres-db:/data/postgres

0 commit comments

Comments
 (0)