I have a docker-compose.yml
which looks like
version: '2'
services:
redis:
image: redis
mysqldb:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=passme
- MYSQL_DATABASE=mydb
- MYSQL_USER=root
base:
build: .
volumes:
- .:/proj
environment:
- ENV_1=Value_1
- ENV_2=Value_2
- ENV_3=Value_3
worker:
extends:
service: base
command: celery -A proj worker --loglevel=debug
links:
- redis
- mysqldb
depends_on:
- mysqldb
web:
extends:
service: base
links:
- mysqldb
- redis
depends_on:
- mysqldb
ports:
- "8000:8000"
command: python manage.py runserver 0.0.0.0:8000
Now, I want to upgrade it to version-3.
From the doc
The
extends
keyword is supported in earlier Compose file formats up to Compose fileversion 2.1
(see extends in v1 and extends in v2), but is not supported in Composeversion 3.x
So, here is my question, How can I use Version-3 docker-compose file without losing my current functionalities?