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 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