Compare commits
5 Commits
9320847167
...
master
Author | SHA1 | Date | |
---|---|---|---|
50bb80bbb6 | |||
d210f75826 | |||
ff9bb06bfd | |||
ebe0f41dcf | |||
4f772aee34 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
.env
|
/.env
|
||||||
gitea_data
|
/data
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
# git.bjphoster.com
|
# Gitea Deployment
|
||||||
|
|
||||||
Deploy for Gitea service
|
|
||||||
|
|
||||||
## Notes:
|
## 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)
|
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:
|
services:
|
||||||
app:
|
app:
|
||||||
container_name: ${SERVICE_NAME}_gitea
|
image: gitea/gitea:${GITEA_VERSION}
|
||||||
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
- USER_GID=${USER_GID}
|
- USER_GID=${USER_GID}
|
||||||
- USER_UID=${USER_UID}
|
- USER_UID=${USER_UID}
|
||||||
image: ${GITEA_VERSION}
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.docker.network=traefik-proxy
|
- traefik.docker.network=traefik-proxy
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
@ -29,32 +29,27 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
- traefik-proxy
|
- traefik-proxy
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
- ./gitea_data:/data
|
- ./data/gitea:/data
|
||||||
- ${GIT_HOMEDIR}/.ssh:/data/git/.ssh
|
- ${GIT_HOMEDIR}/.ssh:/data/git/.ssh
|
||||||
ports:
|
ports:
|
||||||
- ${SSH_PORT}:22
|
- ${SSH_PORT}:22
|
||||||
db:
|
db:
|
||||||
container_name: ${SERVICE_NAME}_mysql
|
image: mariadb:${MYSQL_VERSION}
|
||||||
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||||
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
||||||
- MYSQL_USER=${MYSQL_USER}
|
- MYSQL_USER=${MYSQL_USER}
|
||||||
image: ${MYSQL_VERSION}
|
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
restart: unless-stopped
|
|
||||||
volumes:
|
volumes:
|
||||||
- database:/var/lib/mysql
|
- ./data/mysql:/var/lib/mysql
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internal:
|
internal:
|
||||||
traefik-proxy:
|
traefik-proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|
||||||
volumes:
|
|
||||||
database:
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
GITEA_VERSION=gitea/gitea:latest
|
GITEA_VERSION=latest
|
||||||
MYSQL_DATABASE=gitea
|
MYSQL_DATABASE=gitea
|
||||||
MYSQL_PASSWORD=
|
MYSQL_PASSWORD=
|
||||||
MYSQL_USER=gitea
|
MYSQL_USER=gitea
|
||||||
MYSQL_VERSION=mariadb:10.6.3
|
MYSQL_VERSION=10.6.3
|
||||||
SERVICE_NAME=git.mydomain.com
|
SERVICE_NAME=git.mydomain.com
|
||||||
TRAEFIK_HOST=git.mydomain.com
|
TRAEFIK_HOST=git.mydomain.com
|
||||||
TRAEFIK_ROUTER=git_mydomain_com
|
TRAEFIK_ROUTER=git_mydomain_com
|
||||||
|
Loading…
Reference in New Issue
Block a user