Skip to content

Commit cfb5b8c

Browse files
mhmatthewhugleyDaneEveritt
authored andcommitted
Updated formatting for the docker compose file to fix a error. (pterodactyl#3421)
This fixes the error message "There is an error in the yaml syntax: YAMLSemanticError: Map keys must be unique; "<<" is repeated" which is received if trying to deploy the docker compose using portainer it will not even allow you to click the button because of the formatting error. This is a page showing a example of what I did "http://yaml.org/type/merge.html" Instead of 2 merge requests docker/portainer only allows 1 merge request in this situation so they had to be combined into 1 line instead of 2.
1 parent 9c64fb2 commit cfb5b8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docker-compose.example.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ services:
6161
- "/srv/pterodactyl/certs/:/etc/letsencrypt/"
6262
- "/srv/pterodactyl/logs/:/app/storage/logs"
6363
environment:
64-
<<: *panel-environment
65-
<<: *mail-environment
64+
<<: [*panel-environment, *mail-environment]
6665
DB_PASSWORD: *db-password
6766
APP_ENV: "production"
6867
APP_ENVIRONMENT_ONLY: "false"

0 commit comments

Comments
 (0)