1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/mysql-proxy/docker-compose.yml
2016-05-09 23:30:22 +08:00

19 lines
453 B
YAML

mysql-proxy:
image: vimagick/mysql-proxy
container_name: mysql-proxy
command: >
--proxy-address=:4040
--proxy-backend-addresses=mysql-server:3306
--proxy-lua-script=/code.lua
--admin-address=:4041
--admin-username=root
--admin-password=root
--admin-lua-script=/usr/lib/mysql-proxy/lua/admin.lua
ports:
- "4040:4040"
- "4041:4041"
volumes:
- ./code.lua:/code.lua
log_driver: journald
restart: always