foodotfiles/docker/gitea/docker-compose.yaml
2020-02-04 17:21:11 +02:00

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