Skip to content

Instantly share code, notes, and snippets.

@GammaGames
Last active December 4, 2024 20:08
Show Gist options
  • Save GammaGames/898c8b115c20ece0816152f35c13301b to your computer and use it in GitHub Desktop.
Save GammaGames/898c8b115c20ece0816152f35c13301b to your computer and use it in GitHub Desktop.
Default docker-compose.yaml snippet
{
"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