2020-02-02 19:14:37 +00:00
|
|
|
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
|
2020-02-02 19:36:32 +00:00
|
|
|
- DB_HOST=mariadb-gitea:3306
|
2020-02-02 19:14:37 +00:00
|
|
|
- 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:
|
2020-02-02 19:36:32 +00:00
|
|
|
- mariadb-gitea
|
2020-02-02 19:14:37 +00:00
|
|
|
|
2020-02-02 19:36:32 +00:00
|
|
|
mariadb-gitea:
|
2020-02-02 19:14:37 +00:00
|
|
|
container_name: mariadb-gitea
|
|
|
|
image: mariadb
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
|
|
ports:
|
|
|
|
- '3308:3306'
|
|
|
|
volumes:
|
|
|
|
- /docker/gitea/mariadb:/var/lib/mysql
|