mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2024-11-17 04:09:25 +08:00
Switch image repository to docker.io and fix bind mount for static files
This commit is contained in:
parent
5b2496bec1
commit
cf99755302
1 changed files with 4 additions and 4 deletions
|
@ -4,14 +4,14 @@ services:
|
||||||
# Django Backend
|
# Django Backend
|
||||||
django:
|
django:
|
||||||
env_file: .env
|
env_file: .env
|
||||||
image: git.06222001.xyz/keannu125/drf_template:latest
|
image: keannu125/drf_template:latest
|
||||||
ports:
|
ports:
|
||||||
- "${BACKEND_PORT}:8000"
|
- "${BACKEND_PORT}:8000"
|
||||||
environment:
|
environment:
|
||||||
- PYTHONBUFFERED=1
|
- PYTHONBUFFERED=1
|
||||||
- RUN_TYPE=web
|
- RUN_TYPE=web
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend/static:/backend/static
|
- ./backend/static:./code/backend/static
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ services:
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- RUN_TYPE=worker
|
- RUN_TYPE=worker
|
||||||
image: git.06222001.xyz/keannu125/drf_template:latest
|
image: keannu125/drf_template:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- django
|
- django
|
||||||
- postgres
|
- postgres
|
||||||
|
@ -33,7 +33,7 @@ services:
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
- RUN_TYPE=beat
|
- RUN_TYPE=beat
|
||||||
image: git.06222001.xyz/keannu125/drf_template:latest
|
image: keannu125/drf_template:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- celery
|
- celery
|
||||||
- django
|
- django
|
||||||
|
|
Loading…
Reference in a new issue