1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/mysql-proxy/docker-compose.yml

19 lines
453 B
YAML
Raw Normal View History

2016-05-09 15:33:08 +02:00
mysql-proxy:
image: vimagick/mysql-proxy
2016-05-09 17:28:47 +02:00
container_name: mysql-proxy
2016-05-09 15:33:08 +02:00
command: >
--proxy-address=:4040
--proxy-backend-addresses=mysql-server:3306
--proxy-lua-script=/code.lua
2016-05-09 17:28:47 +02:00
--admin-address=:4041
--admin-username=root
--admin-password=root
--admin-lua-script=/usr/lib/mysql-proxy/lua/admin.lua
2016-05-09 15:33:08 +02:00
ports:
2016-05-09 17:28:47 +02:00
- "4040:4040"
- "4041:4041"
2016-05-09 15:33:08 +02:00
volumes:
- ./code.lua:/code.lua
2016-05-09 17:28:47 +02:00
log_driver: journald
2016-05-09 15:33:08 +02:00
restart: always