mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +01:00
put this in docker container
This commit is contained in:
24
dockercomposeexample/docker-compose.yml
Normal file
24
dockercomposeexample/docker-compose.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user