Created
February 16, 2021 16:10
-
-
Save vittorio-nardone/1010c77b851c538c308944cab303b4ec to your computer and use it in GitHub Desktop.
Compose sample of sidecar container
This file contains 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
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