Skip to content

Instantly share code, notes, and snippets.

@ameersami
Created May 23, 2019 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ameersami/bfb7bf7912cd70feb6ac045565f307ab to your computer and use it in GitHub Desktop.
Save ameersami/bfb7bf7912cd70feb6ac045565f307ab to your computer and use it in GitHub Desktop.
Docker-compose file for the react-boilerplate project
version: '3'
services:
react-app:
image: reactApp:latest
deploy:
restart_policy:
condition: "any"
delay: "0"
max_attempts: 3
window: "30s"
ports:
- "8080"
networks:
- web
- default
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.reactboilerplate.frontend.rule=Host:reactApp.yourdomain.com"
- "traefik.reactboilerplate.frontend.port=8080"
- "traefik.reactboilerplate.frontend.protocol=http"
networks:
web:
external:
name: web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment