Connect gitea to mariadb

This commit is contained in:
Khue Doan 2020-06-23 15:16:48 +07:00
parent 88e45e97d9
commit d10db3a6ba

View File

@ -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"