put this in docker container

This commit is contained in:
2020-10-19 20:23:59 +03:00
committed by Stepan Usatiuk
parent df4d45e376
commit 45444d0741
12 changed files with 128 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
version: "3.8"
services:
photosapp:
image: docker.io/stepanusatiuk/photos_test
ports:
- "8080:8080"
volumes:
- ./data:/usr/src/app/data
environment:
- JWT_SECRET=huegrhuigerhupoiervw
- API_ROOT=http://localhost:8080
- WEB_ROOT=http://localhost:8080
env_file:
- db.env
depends_on:
- db
db:
image: mariadb
restart: always
volumes:
- ./dbdata:/var/lib/mysql
env_file:
- db.env