Compare commits
No commits in common. "master" and "932084716748356e085270ca05e7fdf62ad57d3f" have entirely different histories.
master
...
9320847167
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
/.env
|
||||
/data
|
||||
.env
|
||||
gitea_data
|
||||
|
@ -1,4 +1,6 @@
|
||||
# Gitea Deployment
|
||||
# git.bjphoster.com
|
||||
|
||||
Deploy for Gitea service
|
||||
|
||||
## Notes:
|
||||
Create `gitea_data/gitea/conf` directory first and copy `app.example.ini` inside that and rename it `app.ini` (or let Gitea do that first and overwrite it)
|
||||
|
@ -2,13 +2,13 @@ version: "3"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: gitea/gitea:${GITEA_VERSION}
|
||||
restart: unless-stopped
|
||||
container_name: ${SERVICE_NAME}_gitea
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- USER_GID=${USER_GID}
|
||||
- USER_UID=${USER_UID}
|
||||
image: ${GITEA_VERSION}
|
||||
labels:
|
||||
- traefik.docker.network=traefik-proxy
|
||||
- traefik.enable=true
|
||||
@ -29,27 +29,32 @@ services:
|
||||
networks:
|
||||
- internal
|
||||
- traefik-proxy
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- ./data/gitea:/data
|
||||
- ./gitea_data:/data
|
||||
- ${GIT_HOMEDIR}/.ssh:/data/git/.ssh
|
||||
ports:
|
||||
- ${SSH_PORT}:22
|
||||
db:
|
||||
image: mariadb:${MYSQL_VERSION}
|
||||
restart: unless-stopped
|
||||
container_name: ${SERVICE_NAME}_mysql
|
||||
environment:
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
image: ${MYSQL_VERSION}
|
||||
networks:
|
||||
- internal
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data/mysql:/var/lib/mysql
|
||||
- database:/var/lib/mysql
|
||||
|
||||
networks:
|
||||
internal:
|
||||
traefik-proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
database:
|
||||
|
@ -1,8 +1,8 @@
|
||||
GITEA_VERSION=latest
|
||||
GITEA_VERSION=gitea/gitea:latest
|
||||
MYSQL_DATABASE=gitea
|
||||
MYSQL_PASSWORD=
|
||||
MYSQL_USER=gitea
|
||||
MYSQL_VERSION=10.6.3
|
||||
MYSQL_VERSION=mariadb:10.6.3
|
||||
SERVICE_NAME=git.mydomain.com
|
||||
TRAEFIK_HOST=git.mydomain.com
|
||||
TRAEFIK_ROUTER=git_mydomain_com
|
||||
|
Loading…
Reference in New Issue
Block a user