Skip to content

Instantly share code, notes, and snippets.

@elfarsaouiomar
Last active March 2, 2022 08:19
Show Gist options
  • Save elfarsaouiomar/c463904719ed7b42506c2714d309a2c5 to your computer and use it in GitHub Desktop.
Save elfarsaouiomar/c463904719ed7b42506c2714d309a2c5 to your computer and use it in GitHub Desktop.
docker-compose.yaml
version: "3.7"
services:
app:
user: www-data
image: omarelfarsaoui/nuxtjs-app:v1
ports:
- "9004:9004"
env_file:
- .env
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:9004/ || exit 1
interval: 30s
retries: 4
start_period: 20s
timeout: 5s
deploy:
replicas: 6
resources:
limits:
cpus: "0.50"
memory: "512M"
reservations:
cpus: "0.25"
memory: "128M"
update_config:
parallelism: 4
order: start-first
failure_action: rollback
delay: 10s
rollback_config:
parallelism: 4
order: stop-first
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment