最后活跃于 1749129005

supanadit 修订了这个 Gist 1749129004. 转到此修订

1 file changed, 21 insertions

docker-compose-mariadb.yaml(文件已创建)

@@ -0,0 +1,21 @@
1 + networks:
2 + default:
3 + name: pratama-network
4 + external: true
5 +
6 + services:
7 + mariadb:
8 + image: "bitnami/mariadb:10.8"
9 + restart: always
10 + environment:
11 + - MARIADB_ROOT_PASSWORD=secret
12 + - BITNAMI_DEBUG=false
13 + labels:
14 + # This is how you route TCP in Traefik
15 + - "traefik.enable=true"
16 + - "traefik.tcp.routers.mysql-tcp.rule=HostSNI(`*`)"
17 + - "traefik.tcp.routers.mysql-tcp.entrypoints=mysql"
18 + - "traefik.tcp.routers.mysql-tcp.service=mysql-svc"
19 + - "traefik.tcp.services.mysql-svc.loadbalancer.server.port=3306"
20 + volumes:
21 + - ./.data:/bitnami/mariadb
上一页 下一页