mirror of
https://git.korhonen.cc/FunctionalHacker/dotfiles.git
synced 2024-11-06 15:20:23 +00:00
43 lines
845 B
YAML
43 lines
845 B
YAML
version: '2'
|
|
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
|
|
services:
|
|
gitea:
|
|
container_name: gitea
|
|
image: gitea/gitea:latest
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- DB_TYPE=mysql
|
|
- DB_HOST=mariadb-gitea:3306
|
|
- DB_NAME=gitea
|
|
- DB_USER=gitea
|
|
- DB_PASSWD=gitea
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- /docker/gitea/gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- '3000:3000'
|
|
- '222:22'
|
|
depends_on:
|
|
- mariadb-gitea
|
|
|
|
mariadb-gitea:
|
|
container_name: mariadb-gitea
|
|
image: mariadb
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=gitea
|
|
volumes:
|
|
- /docker/gitea/mariadb:/var/lib/mysql
|
|
- /etc/localtime:/etc/localtime:ro
|