Last active
September 6, 2017 11:11
-
-
Save razbakov/572059eb111ca7ff0fc264b8d1927158 to your computer and use it in GitHub Desktop.
traefik configuration
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: "2" | |
services: | |
bo-loadbalancer: | |
image: "traefik:1.3" | |
ports: | |
- "80:80" | |
- "8080:8080" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
command: --web --docker --docker.domain=docker.localhost | |
container_name: bo-lb | |
bo-server: | |
build: . | |
environment: | |
- SYMFONY_ENV=dev | |
# set to current user uid (on mac usually 501, on linux 1000) | |
- LOCAL_UID=501 | |
depends_on: | |
- bo-db | |
volumes: | |
# on linux remove ",cached" | |
- .:/app:rw,cached | |
container_name: bo-server | |
bo-db: | |
image: mysql | |
ports: | |
- 33061:3306 | |
environment: | |
- MYSQL_ROOT_PASSWORD=api_platform | |
- MYSQL_DATABASE=api_platform | |
- MYSQL_USER=api_platform | |
- MYSQL_PASSWORD=api_platform | |
volumes: | |
- ./var/db:/var/lib/mysql:rw | |
container_name: bo-db | |
command: | |
- "--max_allowed_packet=500M" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment