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