[chore] extract volumes from app anchor (#74)

- yaml anchors do not support merging of lists
- to add specific volumes to a service, you cannot use an alias to
  include shared volumes
- hence, every service should do the volume definition by itself, once
  there is a single service that has a specific volume next to the common ones
This commit is contained in:
Eric Schubert
2024-06-05 12:58:08 +02:00
committed by GitHub
parent dbccaae404
commit 7c00ebe2df

View File

@@ -25,8 +25,6 @@ x-op-app: &app
RAILS_MAX_THREADS: ${RAILS_MAX_THREADS:-16}
# set to true to enable the email receiving feature. See ./docker/cron for more options
IMAP_ENABLED: "${IMAP_ENABLED:-false}"
volumes:
- "${OPDATA:-opdata}:/var/openproject/assets"
services:
db:
@@ -83,6 +81,7 @@ services:
retries: 3
start_period: 30s
volumes:
- "${OPDATA:-opdata}:/var/openproject/assets"
- assets:/app/public
autoheal:
@@ -103,6 +102,8 @@ services:
- db
- cache
- seeder
volumes:
- "${OPDATA:-opdata}:/var/openproject/assets"
cron:
<<: *app
@@ -113,6 +114,8 @@ services:
- db
- cache
- seeder
volumes:
- "${OPDATA:-opdata}:/var/openproject/assets"
seeder:
<<: *app
@@ -120,4 +123,6 @@ services:
restart: on-failure
networks:
- backend
volumes:
- "${OPDATA:-opdata}:/var/openproject/assets"