Last active
October 26, 2018 11:11
-
-
Save neilbartley/b3d5395dcb1645c1184ee360d97b40e8 to your computer and use it in GitHub Desktop.
Calming App Jams with Træfik
This file contains hidden or 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.4' | |
services: | |
hsb: | |
image: 123456789012.dkr.ecr.eu-west-1.amazonaws.com/hairy-slackbot:deploy-20181015-0935-e583d12 | |
command: bundle exec puma -p 3000 | |
# This links to the network created in the proxy (træfik) stack | |
networks: | |
- traefik_traefik | |
# This is where the 'magic' is defined. In a non-swarm environment this would be defined as plain labels. | |
deploy: | |
labels: | |
- "traefik.enable=true" # Use træfik for this service | |
- "traefik.backend=hsb" # What service to talk to | |
- "traefik.frontend.rule=Host:hsb.our-dev-team-domain.co.uk" # What domain should this service use? | |
- "traefik.docker.network=traefik_traefik" # The network to use | |
- "traefik.port=3000" # The port to use for the service | |
secrets: | |
- source: hsb_secrets_1.8.yml | |
target: /app/secrets.yml | |
secrets: | |
hsb_secrets_1.8.yml: | |
external: true | |
networks: | |
traefik_traefik: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment