mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-02 07:04:38 -04:00
Docker mix and match setup
Rewrite of the docker setup. Now uses fig to manage containers and container linkage. The base is a block based mix and match, which will give you the possibility to easily test all configurations.
This commit is contained in:
parent
2886eb76b6
commit
d1a2228f1c
25 changed files with 373 additions and 40 deletions
6
docker/blocks/option_db_mysql/config
Normal file
6
docker/blocks/option_db_mysql/config
Normal file
|
@ -0,0 +1,6 @@
|
|||
[database]
|
||||
DB_TYPE = mysql
|
||||
HOST = ${DB_1_PORT_3306_TCP_ADDR}:${DB_1_PORT_3306_TCP_PORT}
|
||||
NAME = ${DB_1_ENV_MYSQL_DATABASE}
|
||||
USER = ${DB_1_ENV_MYSQL_USER}
|
||||
PASSWD = ${DB_1_ENV_MYSQL_PASSWORD}
|
7
docker/blocks/option_db_mysql/fig
Normal file
7
docker/blocks/option_db_mysql/fig
Normal file
|
@ -0,0 +1,7 @@
|
|||
db:
|
||||
image: mysql:latest
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rootpass
|
||||
MYSQL_DATABASE: gogs
|
||||
MYSQL_USER: gogs
|
||||
MYSQL_PASSWORD: password
|
Loading…
Add table
Add a link
Reference in a new issue