use docker compose
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2022-02-13 20:46:47 +01:00
parent c20b5f7c98
commit 7e5f8b7ee2
3 changed files with 23 additions and 2 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
helm/
venv/
.idea/

3
.gitignore vendored
View File

@ -130,5 +130,4 @@ dmypy.json
#Pycharm
.idea/
*.iml
*wav
*.iml

19
docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: '3.1'
services:
db:
image: postgres:14
restart: always
environment:
POSTGRES_USER: mealsapi
POSTGRES_PASSWORD: meals
POSTGRES_DB: mealsdb
mealsapi:
image: registry.kmlabz.com/tormakris/meals_homework
restart: always
environment:
DATABASE_URI: "postgresql://mealsapi:meals@db:5432/mealsdb"
ports:
- "127.0.0.1:8080:8080"