sudovanilla-ark/docker-compose.yml

33 lines
No EOL
869 B
YAML

services:
server:
image: codeberg.org/forgejo/forgejo:9
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