Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
Docker compose on cross-platform environment

Let's say I have a cross-platform environment,

my app is deployed twice - once on windows container and one on a Linux container,

In addition, I have a DB container (Linux).

Can I use docker compose to build those 3 services?

I think not - because the images I use are built for a certain os type.

Am I right? and maybe I am wrong and there is a workaround for this?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Compose files using version 2.4 support the platform options, which allows for specifying the platform of the service.

platform: osx
platform: windows/amd64
platform: linux/arm64/v8

https://github.com/docker/docker.github.io/blob/master/compose/compose-file/compose-file-v2.md#platform

It should be noted that the platform option is not supported on v3 compose files.

A more in-depth explanation can be found here: https://devblogs.microsoft.com/premier-developer/mixing-windows-and-linux-containers-with-docker-compose/

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!