2024-05-13 23:34:01 -05:00
|
|
|
services:
|
|
|
|
server:
|
2024-10-31 19:42:00 -05:00
|
|
|
image: codeberg.org/forgejo/forgejo:9
|
2024-05-13 23:34:01 -05:00
|
|
|
container_name: ark
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- FORGEJO__database__DB_TYPE=mysql
|
|
|
|
- FORGEJO__database__HOST=db:3306
|
|
|
|
- FORGEJO__database__NAME=${DatabaseName}
|
|
|
|
- FORGEJO__database__USER=${DatabaseUsername}
|
|
|
|
- FORGEJO__database__PASSWD=${DatabasePassword}
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./forgejo:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
ports:
|
|
|
|
- '3000:3000'
|
|
|
|
- '222:22'
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: mysql:8
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=${DatabasePassword}
|
|
|
|
- MYSQL_USER=${DatabaseUsername}
|
|
|
|
- MYSQL_PASSWORD=${DatabasePassword}
|
|
|
|
- MYSQL_DATABASE=${DatabaseName}
|
|
|
|
volumes:
|
|
|
|
- ./mysql:/var/lib/mysql
|