sudovanilla-ark/docker-compose.yml

41 lines
959 B
YAML
Raw Permalink Normal View History

2024-05-13 23:34:01 -05:00
networks:
ark:
external: false
services:
server:
image: codeberg.org/forgejo/forgejo:7
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
networks:
- ark
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}
networks:
- ark
volumes:
- ./mysql:/var/lib/mysql