Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| version: '3' | |
| services: | |
| reverse-proxy: | |
| image: traefik # The official Traefik docker image | |
| command: --api --docker # Enables the web UI and tells Traefik to listen to docker | |
| ports: | |
| - "80:80" # The HTTP port | |
| - "8080:8080" # The Web UI (enabled by --api) | |
| volumes: | |
| - /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events | |
| db: | |
| image: mysql:5.7 | |
| ports: | |
| - 33209:3306 | |
| environment: | |
| MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD | |
| MYSQL_DATABASE: $MYSQL_DATABASE | |
| MYSQL_USER: $MYSQL_USER | |
| MYSQL_PASSWORD: $MYSQL_PASSWORD | |
| rust: | |
| build: . | |
| volumes: | |
| - .:/usr/src/app | |
| links: | |
| - db | |
| ports: | |
| - 8088:8088 | |
| command: cargo run | |
| labels: | |
| - 'traefik.frontend.rule=Host:questionnaire.local' | |
| whoami: | |
| image: containous/whoami # A container that exposes an API to show its IP address | |
| labels: | |
| - "traefik.frontend.rule=Host:whoami.docker.localhost" |