Skip to content

Commit 2bf16f2

Browse files
committed
Using long-syntax for bind volumes.
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
1 parent dbc5917 commit 2bf16f2

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

arcsecond/hosting/docker/docker-compose.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ services:
4141
volumes:
4242
# Leave /data as is, it's a path inside the container, not in the host machine.
4343
# SHARED_DATA_PATH must be a path of your host machine, specified in the .env file.
44-
- ${SHARED_DATA_PATH}:/data
44+
- type: bind
45+
source: ${SHARED_DATA_PATH}
46+
target: /data
47+
bind:
48+
create_host_path: true
4549
stop_grace_period: 60s
4650
healthcheck:
4751
test: [ "CMD", "curl", "-f", "http://localhost:8800/healthcheck/" ]
@@ -64,7 +68,11 @@ services:
6468
volumes:
6569
# Leave /data as is, it's a path inside the container, not in the host machine.
6670
# SHARED_DATA_PATH must be a path of your host machine, specified in the .env file.
67-
- ${SHARED_DATA_PATH}:/data
71+
- type: bind
72+
source: ${SHARED_DATA_PATH}
73+
target: /data
74+
bind:
75+
create_host_path: true
6876
stop_grace_period: 120s
6977

7078
# Arcsecond beat, to launch specific background tasks at specific times.
@@ -88,7 +96,11 @@ services:
8896
volumes:
8997
# Leave /data as is, it's a path inside the container, not in the host machine.
9098
# SHARED_DATA_PATH must be a path of your host machine, specified in the .env file.
91-
- ${SHARED_DATA_PATH}:/data
99+
- type: bind
100+
source: ${SHARED_DATA_PATH}
101+
target: /data
102+
bind:
103+
create_host_path: true
92104

93105
# Arcsecond webapp.
94106
web:

0 commit comments

Comments
 (0)