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