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