Skip to content

Instantly share code, notes, and snippets.

@vittorio-nardone
Created February 16, 2021 16:10
Show Gist options
  • Save vittorio-nardone/1010c77b851c538c308944cab303b4ec to your computer and use it in GitHub Desktop.
Save vittorio-nardone/1010c77b851c538c308944cab303b4ec to your computer and use it in GitHub Desktop.
Compose sample of sidecar container
version: "3.9"
services:
web:
build: ./App
ports:
- "5000:5000"
volumes:
- sidecar:/sidecar
command: sh -c "git clone https://github.com/vittorio-nardone/sidecar.git ; flask run"
redis:
image: "redis:alpine"
refresh:
build: ./Refresh
command: sh -c "cd /sidecar ; git config pull.ff only ; watch -n 60 git pull"
volumes:
- sidecar:/sidecar
volumes:
sidecar:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment