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
|
2024-04-24 18:44:41 +00:00
|
|
|
<%- if @hostnet -%>
|
|
|
|
network_mode: host
|
2024-04-24 19:32:25 +00:00
|
|
|
<%- else -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
ports:
|
|
|
|
- 3306:3306
|
|
|
|
- 6032:6032
|
|
|
|
- 6080:6080
|
2024-04-24 19:32:25 +00:00
|
|
|
<%- 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
|
2024-04-24 19:32:25 +00:00
|
|
|
<%- if !@hostnet -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
networks:
|
|
|
|
- proxysql
|
2024-04-24 18:44:41 +00:00
|
|
|
<%- 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:
|
|
|
|
|
2024-04-24 19:32:25 +00:00
|
|
|
<%- if !@hostnet -%>
|
2023-02-13 09:44:56 +00:00
|
|
|
networks:
|
|
|
|
proxysql:
|
|
|
|
driver: bridge
|
2024-04-24 18:44:41 +00:00
|
|
|
<%- end -%>
|