1
Using YAML to reuse parts of existing docker-compose configuration
source link: https://gist.github.com/tomasfejfar/ba643d6434e596735b55e7255486202a
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Using YAML to reuse parts of existing docker-compose configuration · GitHub
Instantly share code, notes, and snippets.
Using YAML to reuse parts of existing docker-compose configuration
A variation of this:
api:
environment: &app-variable-environments
- FS_AWS_S3_ACCESS_KEY_ID
- FS_AWS_S3_SECRET_ACCESS_KEY
- FS_AWS_S3_REGION
- FS_AWS_S3_BUCKET
- MONGO_URL
- MONGO_DB
- REDIS_HOST
- REDIS_PORT
- REDIS_DB
- UI_PORT
- API_PORT
- DOMAIN_NAME
- APP_SECRET
- SMTP_HOST
- SMTP_PORT
- SMTP_SECURED
- SMTP_USER
- SMTP_PASS
build:
context: ./app
worker:
environment: *app-variable-environments
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK