Docker Compose file is invalid, additional properties not allowed - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/38717025/docker-compose-file-is-invalid-additional-properties-not-allowed) (https://cdn.sstatic.net/Shared/stacks.css?v=d6a266655a25) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=22fb2cb11723) (Feed for question 'Docker Compose file is invalid, additional properties not allowed') (/feeds/question/38717025) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (59e99b481907aca79504282706e4b1db65c79b5bb11a4cbc1d88997106647265) (1) (2.0) Sign up with Google Sign up with GitHub OR (59e99b481907aca79504282706e4b1db65c79b5bb11a4cbc1d88997106647265) (1) () () () () () () Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (59e99b481907aca79504282706e4b1db65c79b5bb11a4cbc1d88997106647265) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f38717025%2fdocker-compose-file-is-invalid-additional-properties-not-allowed) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f38717025%2fdocker-compose-file-is-invalid-additional-properties-not-allowed) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f38717025%2fdocker-compose-file-is-invalid-additional-properties-not-allowed) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f38717025%2fdocker-compose-file-is-invalid-additional-properties-not-allowed) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json python-3.x .net ruby-on-rails sql-server swift django angular objective-c excel pandas angularjs regex typescript ruby linux ajax iphone vba xml laravel spring asp.net-mvc database wordpress string flutter postgresql mongodb wpf windows amazon-web-services xcode bash git oracle-database spring-boot dataframe azure firebase list multithreading docker vb.net react-native eclipse algorithm powershell macos visual-studio numpy image forms scala function vue.js performance twitter-bootstrap selenium winforms kotlin loops express dart hibernate sqlite matlab python-2.7 shell rest apache entity-framework android-studio csv maven api linq qt dictionary unit-testing asp.net-core facebook tensorflow apache-spark file swing class unity-game-engine sorting date authentication go symfony t-sql opencv matplotlib .htaccess google-chrome for-loop datetime codeigniter http perl validation sockets google-maps object uitableview xaml oop if-statement visual-studio-code cordova ubuntu web-services email android-layout github spring-mvc elasticsearch kubernetes selenium-webdriver ms-access user-interface parsing ggplot2 pointers google-sheets machine-learning c++11 security google-apps-script flask ruby-on-rails-3 templates nginx variables exception sql-server-2008 gradle debugging tkinter listview delphi jpa asynchronous pdf web-scraping haskell jsp ssl amazon-s3 google-cloud-platform jenkins testing xamarin wcf npm batch-file generics ionic-framework network-programming unix recursion google-app-engine mongoose visual-studio-2010 .net-core android-fragments assembly animation math next.js session svg hadoop intellij-idea curl django-models join rust winapi laravel-5 url heroku http-redirect tomcat google-cloud-firestore inheritance webpack keras image-processing gcc asp.net-mvc-4 logging dom web swiftui matrix pyspark actionscript-3 button post optimization firebase-realtime-database jquery-ui iis cocoa xpath d3.js javafx firefox internet-explorer xslt caching select asp.net-mvc-3 opengl events asp.net-web-api plot dplyr magento encryption search stored-procedures amazon-ec2 ruby-on-rails-4 memory audio canvas multidimensional-array jsf random vector cookies redux input facebook-graph-api flash xamarin.forms indexing arraylist ipad cocoa-touch data-structures video apache-kafka model-view-controller serialization jdbc woocommerce azure-devops routes razor awk servlets mod-rewrite beautifulsoup docker-compose excel-formula filter iframe aws-lambda design-patterns text django-rest-framework visual-c++ cakephp mobile android-intent react-hooks struct methods groovy mvvm ssh lambda checkbox ecmascript-6 google-chrome-extension time grails installation sharepoint cmake shiny spring-security jakarta-ee android-recyclerview plsql core-data types meteor android-activity sed bootstrap-4 websocket activerecord graph replace scikit-learn file-upload group-by vim junit boost deep-learning import sass memory-management error-handling async-await eloquent dynamic soap silverlight dependency-injection charts layout apache-spark-sql deployment browser gridview svn while-loop google-bigquery vuejs2 ffmpeg dll highcharts view foreach plugins makefile c#-4.0 redis reporting-services jupyter-notebook merge server unicode https reflection google-maps-api-3 twitter oauth-2.0 extjs pytorch axios terminal pip split cmd mysqli encoding django-views automation database-design collections hash netbeans build data-binding ember.js tcp sqlalchemy pdo apache-flex concurrency entity-framework-core command-line spring-data-jpa printing react-redux java-8 jestjs service html-table lua neo4j ansible material-ui parameters module enums visual-studio-2012 flexbox promise outlook webview firebase-authentication web-applications uwp jquery-mobile utf-8 datatable python-requests parallel-processing drop-down-menu colors scroll hive scipy tfs count syntax ms-word twitter-bootstrap-3 ssis google-analytics fonts three.js powerbi rxjs constructor graphql file-io paypal discord cassandra socket.io graphics compiler-errors gwt react-router nlp solr url-rewriting backbone.js memory-leaks datatables oauth terraform datagridview drupal oracle11g zend-framework neural-network knockout.js triggers django-forms interface angular-material google-api casting jmeter linked-list path proxy timer django-templates arduino orm directory parse-platform visual-studio-2015 windows-phone-7 cron push-notification conditional-statements primefaces functional-programming pagination model jar xamarin.android hyperlink uiview gitlab visual-studio-2013 vbscript google-cloud-functions azure-active-directory jwt download swift3 sql-server-2005 configuration process pygame rspec properties combobox callback windows-phone-8 linux-kernel safari permissions scrapy raspberry-pi scripting emacs clojure x86 scope io compilation mongodb-query nhibernate responsive-design expo angularjs-directive azure-functions request bluetooth dns 3d binding reference discord.js architecture playframework pyqt version-control doctrine-orm package get sql-server-2012 rubygems f# autocomplete openssl datepicker kendo-ui tree jackson pycharm controller yii nested grep xamarin.ios static dockerfile statistics transactions datagrid null active-directory uiviewcontroller webforms phpmyadmin discord.py notifications computer-vision sas duplicates mocking youtube nullpointerexception yaml menu sum bitmap blazor asp.net-mvc-5 electron visual-studio-2008 time-series yii2 jsf-2 css-selectors stl android-listview floating-point cryptography ant stream hashmap character-encoding msbuild sdk asp.net-core-mvc google-drive-api selenium-chromedriver jboss joomla cors navigation devise anaconda background camera multiprocessing pyqt5 binary cuda frontend linq-to-sql iterator mariadb onclick plotly ios7 rabbitmq android-jetpack-compose android-asynctask microsoft-graph-api tabs insert laravel-4 uicollectionview environment-variables amazon-dynamodb linker console xsd coldfusion upload continuous-integration ftp textview opengl-es operating-system vuejs3 mockito localization macros formatting xml-parsing json.net kivy type-conversion data.table timestamp calendar integer segmentation-fault android-ndk drag-and-drop prolog char crash jasmine automated-tests dependencies geometry android-gradle-plugin itext firebase-cloud-messaging header fortran sprite-kit mfc attributes nuxt.js nosql format azure-pipelines nestjs odoo db2 jquery-plugins jenkins-pipeline leaflet event-handling flutter-layout julia postman annotations keyboard textbox arm visual-studio-2017 gulp libgdx stripe-payments xampp synchronization crystal-reports timezone dom-events uikit azure-web-app-service android-emulator swagger wso2 sequelize.js namespaces aggregation-framework uiscrollview jvm google-sheets-formula chart.js com subprocess geolocation centos webdriver snowflake-cloud-data-platform html5-canvas widget garbage-collection dialog numbers concatenation sql-update qml set windows-10 tuples mapreduce smtp java-stream ionic2 rotation modal-dialog spring-data android-edittext http-headers doctrine nuget radio-button sonarqube grid lucene xmlhttprequest internationalization listbox initialization switch-statement components google-play apache-camel boolean serial-port ldap ios5 youtube-api return gdb latex pivot eclipse-plugin frameworks tags containers github-actions dataset asp-classic label foreign-keys subquery c++17 copy uinavigationcontroller delegates google-cloud-storage struts2 migration base64 protractor sql-server-2008-r2 find queue embedded uibutton arguments composer-php append jaxb zip stack cucumber autolayout ide entity-framework-6 popup iteration airflow tailwind-css windows-7 r-markdown ssl-certificate vb6 gmail hover jqgrid g++ udp Next You’ll be prompted to create an account to view your personalized homepage. (/) Home (/questions) Questions (/tags) Tags (/beta/discussions) Discussions Labs (https://chat.stackoverflow.com/?tab=all&sort=active) Chat (/users) Users (/jobs?source=so-left-nav) Jobs (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams () Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams (Illustration of upvote icon after it is clicked) Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can save this post to reference later. Save this post for later Not now (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/38717025/docker-compose-file-is-invalid-additional-properties-not-allowed) Docker Compose file is invalid, additional properties not allowed (/questions/ask) Ask Question (2016-08-02 09:45:47Z) Asked 8 years, 8 months ago Modified (?lastactivity) (2023-08-07 18:30:49Z) 1 year, 8 months ago (Viewed 157,605 times) Viewed 158k times This question shows research effort; it is useful and clear (70:3:31e,16:fa91c490054622f2,10:1743945674,16:cde35b8d459a365d,8:38717025,b584522c955e00c264d0b693ad2fd933a1dfda3a57204b6995d6fe61ff4731a4) 23 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:c0bef65dabf739d0,10:1743945674,16:91b6ae74058cc038,8:38717025,bb3f96c91cf5aa31e45f246ea4221aeab6d4e81b7c8162253d25f9d868d60a80) Save this question. (/posts/38717025/timeline) Show activity on this post. This is my sample docker-compose.yml file. version: '2' config-server: image: ccc/config-server restart: always registration-server: image: ccc/registration-server restart: always ports: - 1111 :1111 When I use docker-compose up -d I get an error: "ERROR: The Compose file './docker-compose.yml' is invalid because: Additional properties are not allowed ('registration-server', 'config-server' were unexpected) You might be seeing this error because you're using the wrong Compose file version. Either specify a version of " 2 " (or " 2.0 ") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/ (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose (/questions/tagged/dockerfile) (show questions tagged 'dockerfile') dockerfile (/q/38717025) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/38717025/edit) () Improve this question Follow (70:3:31e,16:c0b92f72c61936ec,10:1743945674,16:33cfb488598df7e6,8:38717025,64332a87a737bef00025e3e069e591dd6cc93cfb0d3925bc9f151e3c2d161635) Follow this question to receive notifications (/posts/38717025/revisions) (show all edits to this post) edited (2018-01-29 21:19:51Z) Jan 29, 2018 at 21:19 (/users/472495/halfer) (halfer's user avatar) (/users/472495/halfer) halfer (reputation score 20,363) 20.4k (19 gold badges) 19 19 gold badges (109 silver badges) 109 109 silver badges (202 bronze badges) 202 202 bronze badges asked (2016-08-02 09:45:47Z) Aug 2, 2016 at 9:45 (/users/2068521/chintamani) (Chintamani's user avatar) (/users/2068521/chintamani) Chintamani Chintamani (reputation score) 1,166 (10 gold badges) 10 10 gold badges (24 silver badges) 24 24 silver badges (50 bronze badges) 50 50 bronze badges (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 4 Answers 4 Sorted by: (/questions/38717025/docker-compose-file-is-invalid-additional-properties-not-allowed?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (70:3:31e,16:7dfda4e08ad23d8c,10:1743945674,16:a99dab1b2388792f,8:38717336,a2d5312e98082552cbd4ff18f50520b1118573908598ec3685a46a670eb676fb) 42 (This answer is not useful) (70:3:31e,16:5f6780f67316d637,10:1743945674,16:73bf89a562382522,8:38717336,5ef0a69d57ff07547525463220b676b9a5a1a9f3545e89e038a87a0a26dc4416) Save this answer. (Loading when this answer was accepted…) (/posts/38717336/timeline) Show activity on this post. You are missing a services keyword, your correct .yml is: version: '2' services: config-server: image: ccc/config-server restart: always registration-server: image: ccc/registration-server restart: always ports: - 1111 :1111 (/a/38717336) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/38717336/edit) () Improve this answer Follow (70:3:31e,16:58a353c37f8f83a9,10:1743945674,16:d7a53c103c38957f,8:38717336,d68ef2175e3ac1324b60816e46fa0dd15e7164fbcf82148df34052e14dcb70a2) Follow this answer to receive notifications answered (2016-08-02 09:59:45Z) Aug 2, 2016 at 9:59 (/users/2227804/michael-bitard) (michael_bitard's user avatar) (/users/2227804/michael-bitard) michael_bitard michael_bitard (reputation score) 4,322 (1 gold badge) 1 1 gold badge (28 silver badges) 28 28 silver badges (38 bronze badges) 38 38 bronze badges 1 (number of 'useful comment' votes received) 1 and also services 's' should be in small – (/users/8591497/n15) (305 reputation) N15 Commented (2018-01-25 10:20:49Z, License: CC BY-SA 3.0) Jan 25, 2018 at 10:20 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:fd0133d80e22604b,10:1743945674,16:72b3fcf7ac92400c,8:62841103,8d61aa35dfb55e12c425010cc80b33f68af8973ea04fe0502bc1ec83149f7c67) 6 (This answer is not useful) (70:3:31e,16:60338c4ab8493bc5,10:1743945674,16:c9186449342a255d,8:62841103,08b063294d4a5c4992b8397e02c928af61d6cb50fd5a8c88b8098622e7e1ca79) Save this answer. (Loading when this answer was accepted…) (/posts/62841103/timeline) Show activity on this post. This can also happpen if one of the keys is misspelled. In my case memory was spelled incorrectly: After fixing it: version: "3.8" services: redis: image: redis:alpine deploy: resources: limits: cpus: '0.50' memory: 50M reservations: cpus: '0.25' memory: 20M (/a/62841103) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/62841103/edit) () Improve this answer Follow (70:3:31e,16:5c62c45a34ea129a,10:1743945674,16:a83d64d9e8d9b2eb,8:62841103,746ec1b0cd62cf52a92b9f0bbce656fe75409e323c7513c6a1755b1fe0090989) Follow this answer to receive notifications answered (2020-07-10 19:27:58Z) Jul 10, 2020 at 19:27 (/users/2052097/z-atef) (z atef's user avatar) (/users/2052097/z-atef) z atef z atef (reputation score) 7,737 (3 gold badges) 3 3 gold badges (60 silver badges) 60 60 silver badges (54 bronze badges) 54 54 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:92339ebd5c73e2f5,10:1743945674,16:93b970721bc0a539,8:69220242,b20a2aa0ca1136362b1ee48406a9450198daba6fe37254310f883567a873d064) 3 (This answer is not useful) (70:3:31e,16:fb1f4f2d346b453d,10:1743945674,16:eab39f51abb20138,8:69220242,a148a2271d8d77bf929e2d02e8fc4c26b0548cc95ab1cc4a7ec21ed327bba25a) Save this answer. (Loading when this answer was accepted…) (/posts/69220242/timeline) Show activity on this post. In the This can also happen if , this can also happens if global level volumes is indented wrong, like not starting at column 0. (/a/69220242) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/69220242/edit) () Improve this answer Follow (70:3:31e,16:644ae2272ce1b769,10:1743945674,16:9cd046b6f06816bf,8:69220242,eec2b0e5d73dc2e3f5261f528bd33916a504da033b6298c6949e5a7a17acf7e5) Follow this answer to receive notifications answered (2021-09-17 08:34:22Z) Sep 17, 2021 at 8:34 (/users/4287943/fabien-haddadi) (Fabien Haddadi's user avatar) (/users/4287943/fabien-haddadi) Fabien Haddadi Fabien Haddadi (reputation score) 2,080 (20 silver badges) 20 20 silver badges (23 bronze badges) 23 23 bronze badges 1 for me it was a typo 'E'nvironment: instead of 'e'nvironment: – (/users/2846069/informedic) (111 reputation) InforMedic Commented (2022-07-26 16:53:48Z, License: CC BY-SA 4.0) Jul 26, 2022 at 16:53 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful (70:3:31e,16:0d84831743cdbcde,10:1743945674,16:1af3415f0dc04098,8:76854322,d96e53b9af5f7533332356f1d1573283b75866cc146de721df539781fe5220a9) 0 (This answer is not useful) (70:3:31e,16:3d4bc2f906a69d55,10:1743945674,16:90cd8f81e1cd9df5,8:76854322,adce30fe1bc39ad092349750a34a7930af649fe7342f6d08a2a27d0357b581ad) Save this answer. (Loading when this answer was accepted…) (/posts/76854322/timeline) Show activity on this post. use this for your docker-compose.yml services: postgres: image: postgres:15-alpine ports: - 5432 :5432 environment: POSTGRES_DB: webapp_dev POSTGRES_HOST_AUTH_METHOD: trust (/a/76854322) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/4.0/) (The current license for this post: CC BY-SA 4.0) CC BY-SA 4.0 (/posts/76854322/edit) () Improve this answer Follow (70:3:31e,16:d12f11eec4de9c04,10:1743945674,16:0aa6793f48157be2,8:76854322,7bb4f5220f1a703f5d9d02db865a0232c36a610e1f7e4938e86a94ad7d3363f2) Follow this answer to receive notifications answered (2023-08-07 18:30:49Z) Aug 7, 2023 at 18:30 (/users/18906484/victor-timi) (Victor Timi's user avatar) (/users/18906484/victor-timi) Victor Timi Victor Timi (reputation score) 443 (1 gold badge) 1 1 gold badge (5 silver badges) 5 5 silver badges (12 bronze badges) 12 12 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (38717025) (false) () (0) Your Answer (True) Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question . Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (59e99b481907aca79504282706e4b1db65c79b5bb11a4cbc1d88997106647265) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f38717025%2fdocker-compose-file-is-invalid-additional-properties-not-allowed%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Start asking to get answers Find the answer to your question by asking. (/questions/ask) Ask question Explore related questions (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose (/questions/tagged/dockerfile) (show questions tagged 'dockerfile') dockerfile See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2025/04/03/from-training-to-inference-the-new-role-of-web-data-in-llms/?cb=1) From training to inference: The new role of web data in LLMs (https://stackoverflow.blog/2025/04/04/is-ai-a-bubble-or-a-revolution-the-answer-is-yes/?cb=1) Is AI a bubble or a revolution? The answer is yes. Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/407927/changes-to-reporting-for-the-status-review-escalation-process?cb=1) Changes to reporting for the [status-review] escalation process (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) Policy: Generative AI (e.g., ChatGPT) is banned (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/433466/a-discussion-about-closed-and-potentially-useful-posts-on-stack-overflow?cb=1) A discussion about closed (and potentially useful) posts on Stack Overflow Linked (https://stackoverflow.com/q/67641068?lq=1) (Question score (upvotes - downvotes)) 9 (https://stackoverflow.com/questions/67641068/docker-cli-failing-to-compose-with-additional-property-postgres-is-not-allowed?noredirect=1&lq=1) Docker CLI failing to compose with "Additional property postgres is not allowed" (https://stackoverflow.com/q/68843018?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/68843018/root-additional-property-nginx-is-not-allowed-while-installing-an-app-in-sal?noredirect=1&lq=1) '(root) additional property nginx is not allowed' while installing an app in Salesforce using Docker Related (https://stackoverflow.com/q/29435890?rq=3) (Question score (upvotes - downvotes)) 4 (https://stackoverflow.com/questions/29435890/issue-with-docker-compose?rq=3) Issue with docker compose (https://stackoverflow.com/q/40716400?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/40716400/docker-compose-error?rq=3) Docker-compose Error (https://stackoverflow.com/q/42059811?rq=3) (Question score (upvotes - downvotes)) 7 (https://stackoverflow.com/questions/42059811/issue-with-the-docker-compose-file?rq=3) issue with the docker compose file (https://stackoverflow.com/q/42278941?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/42278941/docker-compose-file-is-invalid-additional-properties-not-allowed-tty?rq=3) docker compose file is invalid ,additional properties not allowed tty (https://stackoverflow.com/q/69515567?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/69515567/docker-compose-file-is-invalid-unsupported-config-option-container-name?rq=3) docker compose file is invalid, unsupported config option "container-name" (https://stackoverflow.com/q/69801527?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/69801527/docker-compose-error-services-additional-property-is-not-allowed?rq=3) Docker Compose Error: services Additional property ​* is not allowed (https://stackoverflow.com/q/70640308?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/70640308/docker-compose-failing-for-command?rq=3) Docker Compose Failing for command (https://stackoverflow.com/q/71455439?rq=3) (Question score (upvotes - downvotes)) 4 (https://stackoverflow.com/questions/71455439/docker-compose-compose-file-is-invalid-because-unsupported-config-option?rq=3) docker-compose: Compose file "..." is invalid because: unsupported config options (https://stackoverflow.com/q/71557487?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/71557487/docker-compose-file-invalid?rq=3) Docker compose file invalid (https://stackoverflow.com/q/74570514?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/74570514/docker-compose-failed-to-read-dockerfile?rq=3) docker-compose: failed to read dockerfile (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Code Review Stack Exchange) (https://codereview.stackexchange.com/questions/295826/julias-set-fractal-timelapse) Julias Set fractal timelapse (Bicycles Stack Exchange) (https://bicycles.stackexchange.com/questions/96474/eco-friendly-methods-for-removing-bike-chain-degreaser) Eco-friendly methods for removing bike chain degreaser (Mathematics Educators Stack Exchange) (https://matheducators.stackexchange.com/questions/28574/mathematical-metaphors-in-alices-adventures) mathematical metaphors in Alice's adventures (Code Review Stack Exchange) (https://codereview.stackexchange.com/questions/295807/python-exception-monitor) Python Exception Monitor (History Stack Exchange) (https://history.stackexchange.com/questions/77639/did-jules-verne-not-know-how-high-the-rockies-are) Did Jules Verne not know how high the Rockies are? (Signal Processing Stack Exchange) (https://dsp.stackexchange.com/questions/96494/should-we-call-mp3-mpeg-mp4-etc-are-a-kind-of-source-coding-in-telecommunica) Should we call .mp3, mpeg, mp4, etc are a kind of source coding in telecommunications? (Hinduism Stack Exchange) (https://hinduism.stackexchange.com/questions/62762/why-isnt-krishnas-deceit-considered-adharma) Why isn't Krishna's deceit considered adharma? (Bicycles Stack Exchange) (https://bicycles.stackexchange.com/questions/96484/why-do-modern-bicycles-have-tubing-which-curves-and-has-non-circular-cross-secti) Why do modern bicycles have tubing which curves and has non-circular cross-sections? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5053047/where-is-my-proof-of-the-quotient-rule-wrong) Where is my proof of the quotient rule wrong? (Ask Ubuntu) (https://askubuntu.com/questions/1545188/unable-to-save-images-from-web-browsers-firefox-and-chromium-based-to-local-ma) Unable to save images from web browsers (Firefox and Chromium-based) to local machine (Arqade) (https://gaming.stackexchange.com/questions/411753/will-switch-2-also-support-original-switch-joy-cons) Will Switch 2 also support original Switch Joy-Cons? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/740339/multiple-delimiters-for-a-macro) Multiple delimiters for a macro (Physics Stack Exchange) (https://physics.stackexchange.com/questions/846867/how-to-explain-the-dirac-matrices-in-physical-meaning-terms) How to explain the Dirac matrices in physical-meaning terms? (Theoretical Computer Science Stack Exchange) (https://cstheory.stackexchange.com/questions/55258/counting-complexity-of-sat-with-2-occurrences) Counting complexity of SAT with 2 occurrences (German Language Stack Exchange) (https://german.stackexchange.com/questions/79047/extending-a-dative-case-phrase) Extending a dative case phrase (Academia Stack Exchange) (https://academia.stackexchange.com/questions/217732/desk-reject-of-a-revised-manuscript) Desk reject of a revised manuscript? (Movies & TV Stack Exchange) (https://movies.stackexchange.com/questions/125022/in-airplane-1980-a-747-crashes-through-a-large-window-where-else-does-this) In "Airplane" (1980) a 747 crashes through a large window. Where else does this effect appear? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/846911/mechanism-of-guitar-string-tuning-tension-length-and-material-properties) Mechanism of Guitar String Tuning: Tension, Length, and Material Properties (Code Golf Stack Exchange) (https://codegolf.stackexchange.com/questions/279050/efficiently-navigate-a-6-sided-die) Efficiently navigate a 6 sided die (Bicycles Stack Exchange) (https://bicycles.stackexchange.com/questions/96490/what-causes-this-level-of-dry-rot) What causes THIS level of dry rot? (Cross Validated) (https://stats.stackexchange.com/questions/663539/analysing-a-monotonic-relationship-that-isnt-uniform-across-the-whole-range-of) Analysing a monotonic relationship that isn't uniform across the whole range of data - Pearson & Kendall's Tau not suitable (German Language Stack Exchange) (https://german.stackexchange.com/questions/79042/contracting-the-first-person-singular-pr%c3%a4teritum) Contracting the First-Person Singular Präteritum (Stack Overflow) (https://stackoverflow.com/questions/79555310/implicit-declaration-of-standard-function-in-c) Implicit declaration of standard function in C (Home Improvement Stack Exchange) (https://diy.stackexchange.com/questions/316584/are-these-concrete-steps-fixable) Are these concrete steps fixable? (/feeds/question/38717025) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/38717025) () lang-yaml (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Your Privacy Choices (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2025.4.4.24803