2020-06-22 00:27:57 +07:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2020-06-22 14:36:18 +07:00
|
|
|
nginx:
|
|
|
|
container_name: "khuedoan_nginx"
|
|
|
|
build: ./nginx/
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2020-06-23 14:22:26 +07:00
|
|
|
- "22:22"
|
2020-06-22 16:25:42 +07:00
|
|
|
index:
|
|
|
|
container_name: "khuedoan_index"
|
|
|
|
build: ./index/
|
2020-06-22 14:38:49 +07:00
|
|
|
gitea:
|
|
|
|
container_name: "khuedoan_gitea"
|
|
|
|
build: ./gitea/
|
2020-06-23 15:16:48 +07:00
|
|
|
environment:
|
|
|
|
DB_TYPE: "mysql"
|
|
|
|
DB_HOST: "mariadb:3306"
|
|
|
|
DB_USER: "root"
|
|
|
|
DB_PASSWD: $MYSQL_ROOT_PASSWORD
|
|
|
|
DB_NAME: "gitea"
|
2020-06-22 14:22:24 +07:00
|
|
|
mariadb:
|
|
|
|
container_name: "khuedoan_mariadb"
|
|
|
|
build: ./mariadb/
|
|
|
|
environment:
|
2020-06-23 15:16:48 +07:00
|
|
|
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
|
|
|
|
MYSQL_DATABASE: "gitea"
|