Last active
November 8, 2018 14:01
-
-
Save Overbryd/c07aae9f68f487b0bf699c3ec83998b9 to your computer and use it in GitHub Desktop.
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
defaultEntryPoints = ["http"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":8080" | |
compress = true | |
[file] | |
watch = true | |
[backends] | |
[backends.backend1] | |
[backends.backend1.servers.server1] | |
url = "http://web:8000" | |
[frontends] | |
[frontends.frontend1] | |
backend = "backend1" | |
[frontends.frontend1.routes.example] | |
rule = "Host:localhost" | |
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: | |
web: | |
image: overbryd/sample-sse-backend | |
ports: | |
- "8000:8000" | |
traefik: | |
image: traefik:1.7.3 | |
ports: | |
- "8080:8080" | |
command: | |
- traefik | |
- -c | |
- /conf/config.toml | |
volumes: | |
- .:/conf |
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
FROM golang:1.9-alpine | |
WORKDIR /app | |
RUN apk add --no-cache git \ | |
&& git clone https://github.com/amenezes/golang-html5-sse-example . | |
VOLUME /app | |
EXPOSE 8080 | |
CMD ["run", "./server.go"] | |
ENTRYPOINT ["/usr/local/go/bin/go"] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment