Coder Social home page Coder Social logo

Comments (9)

Siumauricio avatar Siumauricio commented on July 18, 2024

please give steps to reproduce the issue, that looks related to traefik certificate

  1. How did you create the self hosted registry?
  2. Did you point the domain name of registry in your dns provider?

In the meantime can you try to reload the traefik?

from dokploy.

jaiiye avatar jaiiye commented on July 18, 2024
  1. Install and login
  2. Set the server domain and configure Let’s Encrypt certificates to enable HTTPS. I used sslip.io,for example: 8-137-0-0.sslip.io
  3. Enable Self Hosted Registry, you need to enter the Username, Password and Registry URL, here Registry URL set to registry.8-137-0-0.sslip.io

from dokploy.

Siumauricio avatar Siumauricio commented on July 18, 2024

That is the reason, you are using a domain that does not belong to you, you cannot assign SSL certificates to those that are accesible only via HTTP domains.

You need to modify the registry file registry.yml from traefik file system and do the following

remove the middlewares, entrypoints and TLS, and restart traefik and it should work

from dokploy.

jaiiye avatar jaiiye commented on July 18, 2024

That is the reason, you are using a domain that does not belong to you, you cannot assign SSL certificates to those that are accesible only via HTTP domains.

I don't think that's the problem. The @/server/api/services/registry.ts::createRegistry method has not yet created a docker registry, and of course has not applied for a certificate.

from dokploy.

Siumauricio avatar Siumauricio commented on July 18, 2024

Sorry, I don't understand much, you mean the docker registry is not being created, can you share the log of docker service ls?

from dokploy.

jaiiye avatar jaiiye commented on July 18, 2024

Yes,the docker registry is not being created.The initializeRegistry method is the only way to start the docker registry,and now the createRegistry method tries to connect to the registry.

enableSelfHostedRegistry: adminProcedure
		.input(apiEnableSelfHostedRegistry)
		.mutation(async ({ input }) => {
			const selfHostedRegistry = await createRegistry({
				...input,
				registryName: "Self Hosted Registry",
				registryType: "selfHosted",
				registryUrl:
					process.env.NODE_ENV === "production"
						? input.registryUrl
						: "dokploy-registry.docker.localhost",
				imagePrefix: null,
			});

			await manageRegistry(selfHostedRegistry);
			await initializeRegistry(input.username, input.password);

			return selfHostedRegistry;
		})

This is the docker service ls output:

root@jinsiyi:~# docker service ls
ID             NAME               MODE         REPLICAS   IMAGE                    PORTS
weydtswbt3m2   dokploy            replicated   1/1        dokploy/dokploy:latest
j7uk1vsp5evg   dokploy-postgres   replicated   1/1        postgres:16              *:30000->5432/tcp
qxg7qev0b6m7   dokploy-redis      replicated   1/1        redis:7                  *:30001->6379/tcp
z544zykeytt7   dokploy-traefik    replicated   1/1        traefik:v2.5

from dokploy.

Siumauricio avatar Siumauricio commented on July 18, 2024

Try to do something, recreate the self hosted registry, and there go to settings -> server -> view logs, and check if there is any error

from dokploy.

callowaysutton avatar callowaysutton commented on July 18, 2024

Although it doesn't fix the root issue, I managed to get around this by just using the Gitea container

from dokploy.

Siumauricio avatar Siumauricio commented on July 18, 2024

Fixed in #196 v0.3.1

from dokploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.