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

40 lines
729 B
Plaintext
Raw Normal View History

2023-02-13 09:44:56 +00:00
version: '3.2'
services:
proxysql:
image: docker.sunet.se/drive/proxysql:<%= @proxysql_version %>
2024-03-18 10:08:54 +00:00
container_name: proxysql_proxysql_1
<%- if @hostnet -%>
network_mode: host
<%- else -%>
2023-02-13 09:44:56 +00:00
ports:
- 3306:3306
- 6032:6032
- 6080:6080
<%- end -%>
2023-02-13 09:44:56 +00:00
environment:
INITIALIZE: 1
dns:
- 89.46.20.75
- 89.46.21.29
- 89.32.32.32
<%- if !@hostnet -%>
2023-02-13 09:44:56 +00:00
networks:
- proxysql
<%- end -%>
2023-02-13 09:44:56 +00:00
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 -%>
2023-02-13 09:44:56 +00:00
networks:
proxysql:
driver: bridge
<%- end -%>