Last active
December 4, 2024 20:08
-
-
Save GammaGames/898c8b115c20ece0816152f35c13301b to your computer and use it in GitHub Desktop.
Default docker-compose.yaml snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"default": { | |
"body": [ | |
"services:", | |
" service:", | |
" image: image:tag", | |
" build:", | |
" context: ./app", | |
" restart: unless-stopped", | |
" profiles:", | |
" - profile", | |
" env_file:", | |
" - .env", | |
" environment:", | |
" KEY: \\${KEY:-default}", | |
" REQUIRED_KEY: \\${KEY:?}", | |
" volumes:", | |
" - /var/log/\\${COMPOSE_PROJECT_NAME:-service}:/var/log", | |
" ports:", | |
" - \\${PORT:-8080}:8080", | |
" networks:", | |
" - network", | |
" depends_on:", | |
" app:", | |
" condition: service_healthy", | |
"", | |
"networks:", | |
" network:", | |
" name: network" | |
], | |
"description": "Default docker-compose.yaml file", | |
"prefix": "default" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment