This commit is contained in:
Zengtudor 2024-11-17 17:10:08 +08:00
parent c56012a5bc
commit c2c6cedf0c

View File

@ -9,8 +9,8 @@ services:
environment: environment:
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
- GITEA__database__DB_TYPE=postgres - GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=db:5432 - GITEA__database__HOST=db:3306
- GITEA__database__NAME=gitea - GITEA__database__NAME=gitea
- GITEA__database__USER=gitea - GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea - GITEA__database__PASSWD=gitea
@ -30,15 +30,15 @@ services:
- "23:22" - "23:22"
depends_on: depends_on:
- db - db
db: db:
image: postgres:14 image: mysql:8
restart: always restart: always
environment: environment:
- POSTGRES_USER=gitea - MYSQL_ROOT_PASSWORD=gitea
- POSTGRES_PASSWORD=gitea - MYSQL_USER=gitea
- POSTGRES_DB=gitea - MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
networks: networks:
- gitea - gitea
volumes: volumes:
- ${GITEA_PATH}/postgres:/var/lib/postgresql/data - ${GITEA_PATH}/mysql:/var/lib/mysql