docker: Change names gitea->forgejo

This commit is contained in:
Glenn Y. Rolland 2023-02-04 12:25:50 +01:00
parent 0d4329f953
commit 32b0418832

View file

@ -4,15 +4,16 @@ version: '3.4'
services:
web:
image: gitea/gitea:1.16.9
build: .
image: glenux/service-forgejo
environment:
USER_UID: 1000
USER_GID: 1000
GITEA__database__DB_TYPE: mysql
GITEA__database__HOST: db:3306
GITEA__database__NAME: gitea
GITEA__database__USER: gitea
GITEA__database__PASSWD: gitea
GITEA__database__NAME: forgejo
GITEA__database__USER: forgejo
GITEA__database__PASSWD: forgejo
# GITEA__mailer__ENABLED: true
# GITEA__mailer__FROM: "${GITEA__mailer__FROM:?GITEA__mailer__FROM not set}"
# GITEA__mailer__MAILER_TYPE: smtp
@ -21,8 +22,8 @@ services:
# GITEA__mailer__USER: "${GITEA__mailer__USER:-apikey}"
# GITEA__mailer__PASSWD: "${GITEA__mailer__PASSWD:?GITEA__mailer__PASSWD not set}"
## Generete the value with
## docker run -it --rm gitea/gitea:1 gitea generate secret SECRET_KEY
## docker run -it --rm gitea/gitea:1 gitea generate secret INTERNAL_TOKEN
## docker run -it --rm forgejo/forgejo:1 forgejo generate secret SECRET_KEY
## docker run -it --rm forgejo/forgejo:1 forgejo generate secret INTERNAL_TOKEN
# GITEA__security__SECRET_KEY=[value returned by generate secret SECRET_KEY]
# GITEA__security__INTERNAL_TOKEN=[value returned by generate secret INTERNAL_TOKEN]
@ -36,23 +37,23 @@ services:
depends_on:
- db
networks:
- gitea_net
- forgejo_net
db:
image: mysql:8
restart: always
environment:
MYSQL_ROOT_PASSWORD: gitea
MYSQL_USER: gitea
MYSQL_PASSWORD: gitea
MYSQL_DATABASE: gitea
MYSQL_ROOT_PASSWORD: forgejo
MYSQL_USER: forgejo
MYSQL_PASSWORD: forgejo
MYSQL_DATABASE: forgejo
volumes:
- db_data:/var/lib/mysql
networks:
- gitea_net
- forgejo_net
networks:
gitea_net:
forgejo_net:
volumes:
app_data: