refactor: Remove Gitea mysql database
This commit is contained in:
parent
d03d47c7af
commit
cce8ea1059
@ -1,8 +1,6 @@
|
|||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
gitea:
|
|
||||||
driver: bridge
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
gitea-data:
|
gitea-data:
|
||||||
@ -15,11 +13,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
- GITEA__database__DB_TYPE=mysql
|
- DISABLE_REGISTRATION=true
|
||||||
- GITEA__database__HOST=db:3306
|
- REQUIRE_SIGNIN_VIEW=true
|
||||||
- GITEA__database__NAME=gitea
|
|
||||||
- GITEA__database__USER=gitea
|
|
||||||
- GITEA__database__PASSWD=gitea
|
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
@ -38,20 +33,4 @@ services:
|
|||||||
- "traefik.http.routers.gitea-https.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.gitea-https.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.routers.gitea-https.rule=Host(`${GITEA_HOST}`)"
|
- "traefik.http.routers.gitea-https.rule=Host(`${GITEA_HOST}`)"
|
||||||
networks:
|
networks:
|
||||||
- gitea
|
|
||||||
- web
|
- web
|
||||||
depends_on:
|
|
||||||
- db
|
|
||||||
|
|
||||||
db:
|
|
||||||
image: mysql:8
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=gitea
|
|
||||||
- MYSQL_USER=gitea
|
|
||||||
- MYSQL_PASSWORD=gitea
|
|
||||||
- MYSQL_DATABASE=gitea
|
|
||||||
networks:
|
|
||||||
- gitea
|
|
||||||
volumes:
|
|
||||||
- ./mysql:/var/lib/mysql
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user