--- 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