added local volume

This commit is contained in:
Alexander Karpov 2023-04-20 13:30:51 +03:00
parent 0463ad239b
commit 3a172e558a

View File

@ -18,6 +18,9 @@ services:
- mailhog - mailhog
volumes: volumes:
- .:/app:z - .:/app:z
- type: bind
source: ./akarpov/media/
target: /app/akarpov/media/
env_file: env_file:
- ./.envs/.local/.django - ./.envs/.local/.django
- ./.envs/.local/.postgres - ./.envs/.local/.postgres
@ -51,6 +54,10 @@ services:
<<: *django <<: *django
image: akarpov_local_celeryworker image: akarpov_local_celeryworker
container_name: akarpov_local_celeryworker container_name: akarpov_local_celeryworker
volumes:
- type: bind
source: ./akarpov/media/
target: /app/akarpov/media/
depends_on: depends_on:
- redis - redis
- postgres - postgres
@ -62,6 +69,10 @@ services:
<<: *django <<: *django
image: akarpov_local_celerybeat image: akarpov_local_celerybeat
container_name: akarpov_local_celerybeat container_name: akarpov_local_celerybeat
volumes:
- type: bind
source: ./akarpov/media/
target: /app/akarpov/media/
depends_on: depends_on:
- redis - redis
- postgres - postgres