Add Docker dev environment and initial code
This commit is contained in:
parent
484b0210bb
commit
0be947b3d1
10 changed files with 173 additions and 150 deletions
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal 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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue