Add Docker dev environment and initial code

This commit is contained in:
Lexi / Zoe 2022-03-25 20:03:33 +01:00
parent 484b0210bb
commit 0be947b3d1
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
10 changed files with 173 additions and 150 deletions

18
docker-compose.yml Normal file
View file

@ -0,0 +1,18 @@
version: '3'
services:
backend:
build:
context: .
dockerfile: Dockerfile.dev
args:
# Use an ".env" file to overwrite this variable if your local user's UID is not 1000.
DEV_USER_UID: ${DEV_USER_UID:-1000}
ports:
- '8080:8080'
volumes:
- ./:/app/
command: gunicorn --bind=0.0.0.0:8080 --reload tofu_api.app:app
volumes:
mariadb_data: