From 87e95bc61d5e8e344cb19b2ba7089802a8968be1 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 27 Jul 2024 01:49:38 +0000 Subject: [PATCH] add mariadb --- nuc/mariadb/docker-compose.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 nuc/mariadb/docker-compose.yml diff --git a/nuc/mariadb/docker-compose.yml b/nuc/mariadb/docker-compose.yml new file mode 100644 index 0000000..4638ea7 --- /dev/null +++ b/nuc/mariadb/docker-compose.yml @@ -0,0 +1,42 @@ +--- + +services: + mariadb: + image: mariadb + restart: always + container_name: mariadb + environment: + MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD} + + ports: + - 3306:3306/tcp + + volumes: + - mariadb_data:/var/lib/mysql + + networks: + - default + + + adminer: + image: adminer + restart: always + container_name: adminer + + + labels: + - "traefik.enable=true" + - "traefik.http.services.adminer.loadbalancer.server.port=8080" + + networks: + - web + - default + +networks: + web: + external: true + + +volumes: + mariadb_data: + external: true \ No newline at end of file