Switch image repository to docker.io and fix bind mount for static files

This commit is contained in:
Keannu Bernasol 2024-09-15 00:21:02 +08:00
parent 5b2496bec1
commit cf99755302

View file

@ -4,14 +4,14 @@ services:
# Django Backend
django:
env_file: .env
image: git.06222001.xyz/keannu125/drf_template:latest
image: keannu125/drf_template:latest
ports:
- "${BACKEND_PORT}:8000"
environment:
- PYTHONBUFFERED=1
- RUN_TYPE=web
volumes:
- ./backend/static:/backend/static
- ./backend/static:./code/backend/static
depends_on:
- postgres
@ -20,7 +20,7 @@ services:
env_file: .env
environment:
- RUN_TYPE=worker
image: git.06222001.xyz/keannu125/drf_template:latest
image: keannu125/drf_template:latest
depends_on:
- django
- postgres
@ -33,7 +33,7 @@ services:
env_file: .env
environment:
- RUN_TYPE=beat
image: git.06222001.xyz/keannu125/drf_template:latest
image: keannu125/drf_template:latest
depends_on:
- celery
- django