Closed Bug 1606383 Opened 5 years ago Closed 5 years ago

Update docker-compose format version

Categories

(Conduit :: Phabricator, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mhentges, Assigned: mhentges)

Details

Attachments

(1 file)

For bug 1605890, I'd like to have a single phabricator Dockerfile with multiple stages (one for development and one for production).
Then, in docker-compose.phabricator.yml, I want to "target" the development stage.

However, services.*.build.target was only added to docker-compose in version 3.4, and we're on version 2.0.

I'd like to update our docker-compose files to version 3.4, which will require that developers are using docker engine 17.09.0 or higher.

I don't believe we use docker-compose in production, so this shouldn't affect ops.

Type: defect → enhancement

The only breaking change is that "volumes_from" no longer exists. So, I had to enumerate the volumes of each
image + service config and encode them where a ".test" service would have done "volumes_from".

In the "docker-compose.*.yml" files where the shared volume was a file/dir on the host file system, I separately defined
the volume in the top-level "volumes" section and had the associated services refer to that.
I used http://blog.code4hire.com/2018/06/define-named-volume-with-host-mount-in-the-docker-compose-file/ as a reference here.

Assignee: nobody → mhentges
Status: NEW → ASSIGNED
Attachment #9118133 - Attachment description: Bug 1606383 - update docker-compose version to 3.4 → Bug 1606383 - update docker-compose version to 3.7
Attachment #9118133 - Attachment description: Bug 1606383 - update docker-compose version to 3.7 → Bug 1606383 - update docker-compose version to 3.4
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: