Make production volumes point to external storage

This commit is contained in:
Mark Veidemanis 2022-09-21 10:00:48 +01:00
parent 2763e52e6b
commit 740f93208b
1 changed files with 19 additions and 17 deletions

View File

@ -1,13 +1,13 @@
version: "2.2" version: "2.2"
volumes: # volumes:
metadata_data: {} # metadata_data: {}
middle_var: {} # middle_var: {}
historical_var: {} # historical_var: {}
broker_var: {} # broker_var: {}
coordinator_var: {} # coordinator_var: {}
router_var: {} # router_var: {}
druid_shared: {} # druid_shared: {}
services: services:
app: app:
@ -84,7 +84,7 @@ services:
container_name: postgres container_name: postgres
image: postgres:latest image: postgres:latest
volumes: volumes:
- metadata_data:/var/lib/postgresql/data - /block/store/metadata_data:/var/lib/postgresql/data
environment: environment:
- POSTGRES_PASSWORD=FoolishPassword - POSTGRES_PASSWORD=FoolishPassword
- POSTGRES_USER=druid - POSTGRES_USER=druid
@ -131,8 +131,10 @@ services:
image: apache/druid:0.23.0 image: apache/druid:0.23.0
container_name: coordinator container_name: coordinator
volumes: volumes:
- druid_shared:/opt/shared # - druid_shared:/opt/shared
- coordinator_var:/opt/druid/var # - coordinator_var:/opt/druid/var
- /block/store/druid_shared:/opt/shared
- /block/store/coordinator_var:/opt/druid/var
depends_on: depends_on:
- zookeeper - zookeeper
- postgres - postgres
@ -147,7 +149,7 @@ services:
image: apache/druid:0.23.0 image: apache/druid:0.23.0
container_name: broker container_name: broker
volumes: volumes:
- broker_var:/opt/druid/var - /block/store/broker_var:/opt/druid/var
depends_on: depends_on:
- zookeeper - zookeeper
- postgres - postgres
@ -163,8 +165,8 @@ services:
image: apache/druid:0.23.0 image: apache/druid:0.23.0
container_name: historical container_name: historical
volumes: volumes:
- druid_shared:/opt/shared - /block/store/druid_shared:/opt/shared
- historical_var:/opt/druid/var - /block/store/historical_var:/opt/druid/var
depends_on: depends_on:
- zookeeper - zookeeper
- postgres - postgres
@ -180,8 +182,8 @@ services:
image: apache/druid:0.23.0 image: apache/druid:0.23.0
container_name: middlemanager container_name: middlemanager
volumes: volumes:
- druid_shared:/opt/shared - /block/store/druid_shared:/opt/shared
- middle_var:/opt/druid/var - /block/store/middle_var:/opt/druid/var
depends_on: depends_on:
- zookeeper - zookeeper
- postgres - postgres
@ -198,7 +200,7 @@ services:
image: apache/druid:0.23.0 image: apache/druid:0.23.0
container_name: router container_name: router
volumes: volumes:
- router_var:/opt/druid/var - /block/store/router_var:/opt/druid/var
depends_on: depends_on:
- zookeeper - zookeeper
- postgres - postgres