refactor: Remove Gitea mysql database
This commit is contained in:
parent
d03d47c7af
commit
cce8ea1059
@ -1,8 +1,6 @@
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
gitea:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
gitea-data:
|
||||
@ -15,11 +13,8 @@ services:
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=mysql
|
||||
- GITEA__database__HOST=db:3306
|
||||
- GITEA__database__NAME=gitea
|
||||
- GITEA__database__USER=gitea
|
||||
- GITEA__database__PASSWD=gitea
|
||||
- DISABLE_REGISTRATION=true
|
||||
- REQUIRE_SIGNIN_VIEW=true
|
||||
volumes:
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
@ -38,20 +33,4 @@ services:
|
||||
- "traefik.http.routers.gitea-https.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.gitea-https.rule=Host(`${GITEA_HOST}`)"
|
||||
networks:
|
||||
- gitea
|
||||
- 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