Skip to content

Instantly share code, notes, and snippets.

@razbakov
Last active September 6, 2017 11:11
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 razbakov/572059eb111ca7ff0fc264b8d1927158 to your computer and use it in GitHub Desktop.
Save razbakov/572059eb111ca7ff0fc264b8d1927158 to your computer and use it in GitHub Desktop.
traefik configuration
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