Skip to content

Commit

Permalink
Fix multiple yaml alias not working
Browse files Browse the repository at this point in the history
Issue when using docker compose version >= 2.17.0

docker/compose#10411
  • Loading branch information
NoNamePaul94 committed Apr 19, 2024
1 parent 8bc05f3 commit b099503
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions docker-compose-split.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ services:
image: packeton/packeton:latest
hostname: php-fpm
command: ['php-fpm', '-F']
<<: *restart_policy
<<: *default-volume
<<: [*restart_policy, *default-volume]
environment:
<<: *default-environment
SKIP_INIT: 0
Expand All @@ -51,8 +50,7 @@ services:
hostname: nginx
ports:
- '127.0.0.1:8088:80'
<<: *restart_policy
<<: *default-volume
<<: [*restart_policy, *default-volume]
command: >
bash -c 'sed s/_PHP_FPM_HOST_/php-fpm:9000/g < docker/nginx/nginx-tpl.conf > /etc/nginx/nginx.conf && nginx'
environment:
Expand All @@ -66,8 +64,7 @@ services:
hostname: packeton-worker
command: ['bin/console', 'packagist:run-workers', '-v']
user: www-data
<<: *restart_policy
<<: *default-volume
<<: [*restart_policy, *default-volume]
environment:
<<: *default-environment
WAIT_FOR_HOST: 'php-fpm:9000'
Expand All @@ -79,8 +76,7 @@ services:
hostname: packeton-cron
command: ['bin/console', 'okvpn:cron', '--demand', '--time-limit=3600']
user: www-data
<<: *restart_policy
<<: *default-volume
<<: [*restart_policy, *default-volume]
environment:
<<: *default-environment
WAIT_FOR_HOST: 'php-fpm:9000'
Expand Down

0 comments on commit b099503

Please sign in to comment.