23 lines
889 B
Bash
23 lines
889 B
Bash
docker stop forgejo-redbull || true
|
|
docker rm forgejo-redbull || true
|
|
docker run -d
|
|
--name forgejo-redbull
|
|
--restart always
|
|
--network coolify
|
|
-p 3001:3000
|
|
-p 22222:22
|
|
-v forgejo-data:/data
|
|
-e USER=git
|
|
-e GITEA_CUSTOM=/data/gitea
|
|
-e FORGEJO__database__DB_TYPE=postgres
|
|
-e FORGEJO__database__HOST=kssgo8ccgkos0kw0c0owgk8o:5432
|
|
-e FORGEJO__database__NAME=forgejo
|
|
-e FORGEJO__database__USER=coolify
|
|
-e "FORGEJO__database__PASSWD=Shared#User#Password#123!4"
|
|
-e FORGEJO__database__SSL_MODE=disable
|
|
--label "traefik.enable=true"
|
|
--label "traefik.http.routers.forgejo-redbull.rule=Host(`git.rede5.com.br`)"
|
|
--label "traefik.http.routers.forgejo-redbull.entrypoints=https"
|
|
--label "traefik.http.routers.forgejo-redbull.tls=true"
|
|
--label "traefik.http.services.forgejo-redbull.loadbalancer.server.port=3000"
|
|
codeberg.org/forgejo/forgejo:8
|