mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Add production docker-compose file and update pipeline
This commit is contained in:
parent
babab64113
commit
ef95f6d09d
3 changed files with 16 additions and 2 deletions
14
docker-compose.prod.yml
Normal file
14
docker-compose.prod.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
services:
|
||||
# API
|
||||
django:
|
||||
env_file: .env
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: git.06222001.xyz/keannu125/drf_template:latest
|
||||
ports:
|
||||
- "${BACKEND_PORT}:8000"
|
||||
environment:
|
||||
- RUN_TYPE=api
|
||||
volumes:
|
||||
- ./src:/app/src # Bind mount for persistent schema.yml and static files
|
Loading…
Add table
Add a link
Reference in a new issue