Skip to content

Instantly share code, notes, and snippets.

@Overbryd
Last active November 8, 2018 14:01
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 Overbryd/c07aae9f68f487b0bf699c3ec83998b9 to your computer and use it in GitHub Desktop.
Save Overbryd/c07aae9f68f487b0bf699c3ec83998b9 to your computer and use it in GitHub Desktop.
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"
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
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