This commit is contained in:
giles 2022-06-08 19:05:00 +01:00
parent 088aba5587
commit 3b6c1749fa
3 changed files with 9 additions and 5 deletions

View File

@ -2,5 +2,5 @@ echo $NAME \
&& export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \ && export LOCAL_DOCKER_REGISTRY=${REGISTRY_DOMAIN}:${REGISTRY_PORT}/${ROOT}/${NAME}/ \
&& docker stack rm gitea \ && docker stack rm gitea \
&& echo 'sleeping...zzz' \ && echo 'sleeping...zzz' \
&& sleep 60 \ && sleep 10 \
&& docker stack deploy -c docker-compose.yml gitea --with-registry-auth && docker stack deploy -c docker-compose.yml gitea --with-registry-auth

View File

@ -13,3 +13,7 @@
* gitea-server-lfs-jwt-secret * gitea-server-lfs-jwt-secret
* local-docker-registry * local-docker-registry
* registry-password * registry-password
## mysql
set up https://docs.gitea.io/en-us/database-prep/

View File

@ -32,7 +32,7 @@ services:
networks: networks:
- appnet - appnet
- externalnet - externalnet
ghost-mysql: mysql:
image: ${DOCKER_REGISTRY}mysql:5.7 image: ${DOCKER_REGISTRY}mysql:5.7
deploy: deploy:
placement: placement:
@ -41,14 +41,14 @@ services:
restart_policy: restart_policy:
condition: any condition: any
volumes: volumes:
- gitea-data:/var/lib/mysql - gitea-data-1:/var/lib/mysql
environment: environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
networks: networks:
- appnet - appnet
volumes: volumes:
gitea-app-4: gitea-app-4:
gitea-data: gitea-data-1:
networks: networks:
appnet: appnet: