-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for docker-compose version 2 #5
Comments
Could you please provide an example of your docker-compose.yaml file? |
I guess you can take any example from the docker website (see: docs.docker.com/compose/compose-file/#version-2) but here is the one I tried to convert with compose2bash: version: '2'
services:
web:
image: nginx:1-alpine
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d:ro
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from:
- phpfpm:ro
networks:
- front
- back
labels:
- "traefik.port=80"
- "traefik.frontend.rule=Host:wambo.co,www.wambo.co"
- "traefik.protocol=http"
- "traefik.frontend.entryPoints=http,https"
- "traefik.frontend.passHostHeader=true"
phpfpm:
image: php:7-fpm-alpine
volumes:
- ./web:/var/www/html
networks:
- back
networks:
front:
driver: bridge
back:
driver: bridge |
Sorry, right now I have not time and need to add support for the version 2. But I would gladly accept a PR for that. |
JFYI: encountered a similar problem: ''' will try to fix it |
I just wanted to try compose2bash but it seems that it currently does not support docker-compose files in version 2:
Do you have any plans on adding support for version 2?
The text was updated successfully, but these errors were encountered: