Skip to content

Commit

Permalink
Use shared volume in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
15cm committed Jul 10, 2023
1 parent 16f02bb commit bdcddb7
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ services:
depends_on:
- redis
- db
volumes:
- data-export:/data/thanatosns/export
ports:
- 3000:3000

task-worker:
celery:
image: 15cm/thanatosns
restart: unless-stopped
command: pdm run celery -A thanatosns worker -l INFO
Expand All @@ -22,8 +24,10 @@ services:
depends_on:
- redis
- db
volumes:
- data-export:/data/thanatosns/export

task-monitoring:
flower:
image: 15cm/thanatosns
restart: unless-stopped
command: pdm run celery --broker=redis://redis:6379/1 flower
Expand Down Expand Up @@ -58,3 +62,10 @@ services:
environment:
- POSTGRES_PASSWORD=postgres

volumes:
data-export:
driver: local
driver_opts:
o: bind
type: none
device: /tmp/thanatosns

0 comments on commit bdcddb7

Please sign in to comment.