Compare commits

...

4 Commits

Author SHA1 Message Date
cda1e2df12 Merge pull request 'gitea' (#1) from gitea into main
Reviewed-on: #1
2024-07-03 15:50:57 -04:00
5786961233 typo 2024-07-03 15:50:28 -04:00
33098bcc28 typo 2024-07-03 15:48:35 -04:00
cf76132c0c lots of files??? 2024-07-03 15:43:37 -04:00
8 changed files with 50 additions and 27 deletions

1
botc/.gitignore vendored
View File

@ -1,3 +1,4 @@
backup/*
wordpress/*
data/*
db/*

View File

@ -8,7 +8,7 @@ services:
MYSQL_PASSWORD: ${DBPASS}
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- ./db:/var/lib/mysql
- ./db:/var/lib/mysql:rw
wordpress:
depends_on:
- db
@ -26,10 +26,8 @@ services:
LETSENCRYPT_EMAIL: ${EMAIL}
# LETSENCRYPT_TEST: true
volumes:
- ./wordpress:/var/www/html
- ./backup:/var/www/html/wp-content/updraft
volumes:
db:
- ./wordpress:/var/www/html:rw
- ./backup:/var/www/html/wp-content/updraft:rw
networks:
default:
name: nginx-proxy

View File

@ -10,7 +10,7 @@ services:
- ${DATA_LOCATION}/homarr:/data
environment:
- VIRTUAL_HOST=homarr.${DOMAIN}, ${DOMAIN}, www.${DOMAIN}
- LETSENCRYPT_HOST="homarr.${DOMAIN}, ${DOMAIN}, www.${DOMAIN}"
- LETSENCRYPT_HOST=${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
expose:
- "7575"

View File

@ -1,6 +1,7 @@
DOMAIN=example.com
UID=1000
GID=1000
DBPASS=gitea
TZ=Etc/UTC
CONFIG_LOCATION=./config
DATA_LOCATION=./data

3
gitea/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
config/*
data/*
db/*

40
gitea/docker-compose.yml Normal file
View File

@ -0,0 +1,40 @@
services:
server:
image: gitea/gitea:latest-rootless
container_name: gitea
depends_on:
- db
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=gitea-db-1:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=${DBPASS}
- VIRTUAL_HOST=git.${DOMAIN},git.${DOMAIN}
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=git.${DOMAIN},git.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
restart: always
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:2222"
expose:
- "3000"
db:
image: postgres:14
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=${DBPASS}
- POSTGRES_DB=gitea
volumes:
- ./db:/var/lib/postgresql/data
networks:
default:
name: nginx-proxy
external: true

1
gitlab/.gitignore vendored
View File

@ -1 +0,0 @@
data/

View File

@ -1,19 +0,0 @@
services:
gitlab:
image: gitlab/gitlab-ee:16.9.6-ee.0
container_name: gitlab
restart: always
hostname: 'gitlab.${DOMAIN}'
environment:
- VIRTUAL_HOST=gitlab.${DOMAIN}
- LETSENCRYPT_HOST=gitlab.${DOMAIN}
- LETSENCRYPT_EMAIL=${EMAIL}
volumes:
- '${CONFIG_LOCATION}/gitlab:/etc/gitlab'
- '${CONFIG_LOCATION}/logs:/var/log/gitlab'
- '${DATA_LOCATION}/data:/var/opt/gitlab'
shm_size: '256m'
networks:
default:
name: nginx-proxy
external: true