This commit is contained in:
parent
088aba5587
commit
3b6c1749fa
|
@ -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
|
||||||
|
|
|
@ -12,4 +12,8 @@
|
||||||
* gitea-security-secret-key
|
* gitea-security-secret-key
|
||||||
* 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/
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue