mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Connect gitea to mariadb
This commit is contained in:
parent
88e45e97d9
commit
d10db3a6ba
@ -14,10 +14,15 @@ services:
|
||||
gitea:
|
||||
container_name: "khuedoan_gitea"
|
||||
build: ./gitea/
|
||||
environment:
|
||||
DB_TYPE: "mysql"
|
||||
DB_HOST: "mariadb:3306"
|
||||
DB_USER: "root"
|
||||
DB_PASSWD: $MYSQL_ROOT_PASSWORD
|
||||
DB_NAME: "gitea"
|
||||
mariadb:
|
||||
container_name: "khuedoan_mariadb"
|
||||
build: ./mariadb/
|
||||
environment:
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
|
||||
ports:
|
||||
- "3306:3306"
|
||||
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
|
||||
MYSQL_DATABASE: "gitea"
|
||||
|
Loading…
Reference in New Issue
Block a user