2022-02-13 20:46:47 +01:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:14
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: mealsapi
|
|
|
|
POSTGRES_PASSWORD: meals
|
|
|
|
POSTGRES_DB: mealsdb
|
|
|
|
|
|
|
|
mealsapi:
|
2022-02-13 20:48:27 +01:00
|
|
|
image: registry.kmlabz.com/tormakris/meal_homework
|
2022-02-13 20:46:47 +01:00
|
|
|
restart: always
|
2022-02-13 20:48:27 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
2022-02-13 20:46:47 +01:00
|
|
|
environment:
|
|
|
|
DATABASE_URI: "postgresql://mealsapi:meals@db:5432/mealsdb"
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8080:8080"
|