forked from coop-cloud/gitea
Add default, shorten start check and remove outdated cruft
This commit is contained in:
parent
344fcfe192
commit
82023bf3a8
@ -30,7 +30,7 @@ services:
|
|||||||
interval: 15s
|
interval: 15s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 10
|
retries: 10
|
||||||
start_period: 30s
|
start_period: 15s
|
||||||
deploy:
|
deploy:
|
||||||
update_config:
|
update_config:
|
||||||
failure_action: rollback
|
failure_action: rollback
|
||||||
@ -41,7 +41,7 @@ services:
|
|||||||
- "traefik.http.routers.gitea.rule=Host(`${DOMAIN}`)"
|
- "traefik.http.routers.gitea.rule=Host(`${DOMAIN}`)"
|
||||||
- "traefik.http.routers.gitea.entrypoints=web-secure"
|
- "traefik.http.routers.gitea.entrypoints=web-secure"
|
||||||
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||||
- "traefik.http.routers.gitea.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.gitea.tls.certresolver=${LETS_ENCRYPT_ENV:production}"
|
||||||
|
|
||||||
- "traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)"
|
- "traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`)"
|
||||||
- "traefik.tcp.routers.gitea-ssh.entrypoints=gitea-ssh"
|
- "traefik.tcp.routers.gitea-ssh.entrypoints=gitea-ssh"
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
create-secrets () {
|
|
||||||
pwgen -n 32 1 | docker secret create "${STACK_NAME}_db_passwd_${DB_PASSWD_VERSION}" -
|
|
||||||
pwgen -n 32 1 | docker secret create "${STACK_NAME}_db_root_passwd_${DB_ROOT_PASSWD_VERSION}" -
|
|
||||||
pwgen -n 105 1 | docker secret create "${STACK_NAME}_internal_token_${INTERNAL_TOKEN_VERSION}" -
|
|
||||||
pwgen -n 43 1 | docker secret create "${STACK_NAME}_jwt_secret_${JWT_SECRET_VERSION}" -
|
|
||||||
pwgen -n 64 1 | docker secret create "${STACK_NAME}_secret_key_${SECRET_KEY_VERSION}" -
|
|
||||||
}
|
|
||||||
|
|
||||||
create-admin () {
|
create-admin () {
|
||||||
container=$(docker container ls -f "name=${STACK_NAME}_gitea" -q)
|
container=$(docker container ls -f "name=${STACK_NAME}_gitea" -q)
|
||||||
docker exec "$container" \
|
docker exec "$container" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user