Fix networks

This commit is contained in:
Micke Nordin 2023-03-20 09:38:45 +01:00
parent 03808354f3
commit 3c1ee2ba1d
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257
2 changed files with 15 additions and 2 deletions

View file

@ -13,9 +13,20 @@ services:
command: redis-server /data/redis.conf --loglevel verbose command: redis-server /data/redis.conf --loglevel verbose
restart: always restart: always
networks: networks:
<%- if @environment == 'test' -%>
- proxysql_proxysql
<%- else %>
- mariadb-<%= @customer %>_<%= @customer %> - mariadb-<%= @customer %>_<%= @customer %>
<% end -%>
networks: networks:
mariadb-<%= @customer %>_<%= @customer %>: mariadb-<%= @customer %>_<%= @customer %>:
external: true external: true
<%- if @environment == 'test' -%>
proxysql_proxysql:
external: true
<%- else %>
mariadb-<%= @customer %>_<%= @customer %>:
external: true
<% end -%>

View file

@ -16,9 +16,10 @@ services:
- <%= @rclone_conf_path %>:/rclone.conf - <%= @rclone_conf_path %>:/rclone.conf
networks: networks:
- default - default
- mariadb-<%= @customer %>_<%= @customer %>
<%- if @environment == 'test' -%> <%- if @environment == 'test' -%>
- proxysql_proxysql - proxysql_proxysql
<%- else %>
- mariadb-<%= @customer %>_<%= @customer %>
<% end -%> <% end -%>
dns: dns:
- 89.46.20.75 - 89.46.20.75
@ -33,6 +34,7 @@ networks:
<%- if @environment == 'test' -%> <%- if @environment == 'test' -%>
proxysql_proxysql: proxysql_proxysql:
external: true external: true
<% end -%> <%- else %>
mariadb-<%= @customer %>_<%= @customer %>: mariadb-<%= @customer %>_<%= @customer %>:
external: true external: true
<% end -%>