Skip to content

Commit 3aa9f73

Browse files
committed
restore volumes in pod-pod dockerfile
1 parent 8031395 commit 3aa9f73

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docker-compose-pod-pod.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
x-pod-volumes: &pod-volumes
2+
- .:/usr/src/app
3+
4+
x-elasticsearch-volumes: &elasticsearch-volumes
5+
- ./dockerfile-dev-with-volumes/config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
6+
17
services:
28
pod-a:
39
container_name: pod-a
@@ -16,6 +22,7 @@ services:
1622
- 8000:8000
1723
environment:
1824
INITIAL_DATA_FILE: "initial_data_ap_pod_a.json"
25+
volumes: *pod-volumes
1926

2027
pod-b:
2128
container_name: pod-b
@@ -34,6 +41,7 @@ services:
3441
- 9000:8000
3542
environment:
3643
INITIAL_DATA_FILE: "initial_data_ap_pod_b.json"
44+
volumes: *pod-volumes
3745

3846
elasticsearch:
3947
container_name: elasticsearch
@@ -70,6 +78,7 @@ services:
7078
- indices.memory.index_buffer_size=10%
7179
- thread_pool.write.queue_size=1000
7280
- cluster.max_shards_per_node=1000
81+
volumes: *elasticsearch-volumes
7382

7483
pod-activitypub-worker-a:
7584
container_name: pod-activitypub-worker-a
@@ -83,6 +92,7 @@ services:
8392
condition: service_started
8493
env_file:
8594
- ./.env.dev
95+
volumes: *pod-volumes
8696

8797
pod-activitypub-worker-b:
8898
container_name: pod-activitypub-worker-b
@@ -96,6 +106,7 @@ services:
96106
condition: service_started
97107
env_file:
98108
- ./.env.dev
109+
volumes: *pod-volumes
99110

100111
redis:
101112
container_name: redis

0 commit comments

Comments
 (0)