feat(docker): uses named volumes in docker-compose (#133)

Closes #132
This commit is contained in:
Sean 2022-01-09 18:54:23 -06:00 committed by GitHub
parent fb2a7d59d4
commit 8410b9310f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -8,8 +8,8 @@ services:
ports: ports:
- 8000:8000 - 8000:8000
volumes: volumes:
- ./volumes/tubearchivist/media:/youtube - media:/youtube
- ./volumes/tubearchivist/cache:/cache - cache:/cache
environment: environment:
- ES_URL=http://archivist-es:9200 - ES_URL=http://archivist-es:9200
- REDIS_HOST=archivist-redis - REDIS_HOST=archivist-redis
@ -29,7 +29,7 @@ services:
expose: expose:
- "6379" - "6379"
volumes: volumes:
- ./volumes/tubearchivist/redis:/data - redis:/data
depends_on: depends_on:
- archivist-es - archivist-es
archivist-es: archivist-es:
@ -46,6 +46,12 @@ services:
soft: -1 soft: -1
hard: -1 hard: -1
volumes: volumes:
- ./volumes/tubearchivist/es:/usr/share/elasticsearch/data - es:/usr/share/elasticsearch/data
expose: expose:
- "9200" - "9200"
volumes:
media:
cache:
redis:
es: