sunetdrive/templates/proxysql/docker-compose_proxysql.yml.erb

39 lines
718 B
Plaintext

version: '3.2'
services:
proxysql:
image: docker.sunet.se/drive/proxysql:<%= @proxysql_version %>
container_name: proxysql_proxysql_1
<%- if @hostnet -%>
network_mode: host
<%- end -%>
ports:
- 3306:3306
- 6032:6032
- 6080:6080
environment:
INITIALIZE: 1
dns:
- 89.46.20.75
- 89.46.21.29
- 89.32.32.32
<%- if ! @hostnet -%>
networks:
- proxysql
<%- end -%>
restart: unless-stopped
volumes:
- proxysql:/var/lib/proxysql
- /opt/proxysql/proxysql.cnf:/etc/proxysql.cnf
- /opt/proxysql/my.cnf:/etc/mysql/conf.d/my.cnf
volumes:
proxysql:
<%- if ! @hostnet -%>
networks:
proxysql:
driver: bridge
<%- end -%>