Created
May 23, 2019 02:44
-
-
Save ameersami/bfb7bf7912cd70feb6ac045565f307ab to your computer and use it in GitHub Desktop.
Docker-compose file for the react-boilerplate project
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' | |
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