[day-00] base infra for the project

This commit is contained in:
Joao P Dubas
2021-06-22 01:50:29 +00:00
commit f02c0ff310
4 changed files with 30 additions and 0 deletions

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
---
version: '3.7'
services:
db:
image: 'postgres:13.3-alpine'
hostname: &db_host db
environment:
POSTGRES_USER: &db_user postgres
POSTGRES_PASSWORD: &db_pass postgres
POSTGRES_DB: &db_name postgres
volumes:
- './priv/docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql'
- 'db_data:/var/lib/postgresql/data'
restart: unless-stopped
volumes:
db_data: {}