added gitea config files
This commit is contained in:
35
gitea/docker-compose.yml
Normal file
35
gitea/docker-compose.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./container-data:/data:Z
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
- proxy-network
|
||||
- gitea
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: postgres:14
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=gitea
|
||||
- POSTGRES_PASSWORD=${GITEA__database__PASSWD}
|
||||
- POSTGRES_DB=gitea
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./postgres-data:/var/lib/postgresql/data
|
||||
|
||||
networks:
|
||||
proxy-network:
|
||||
external: true
|
||||
gitea:
|
10
gitea/gitea.env
Normal file
10
gitea/gitea.env
Normal file
@@ -0,0 +1,10 @@
|
||||
USER_UID=1000
|
||||
USER_GID=1000
|
||||
GITEA__database__DB_TYPE=postgres
|
||||
GITEA__database__HOST=db:5432
|
||||
GITEA__database__NAME=gitea
|
||||
GITEA__database__USER=gitea
|
||||
GITEA__database__PASSWD=changeme
|
||||
VIRTUAL_HOST=gitea.thelazyoxymoron.me
|
||||
LETSENCRYPT_HOST=gitea.thelazyoxymoron.me
|
||||
VIRTUAL_PORT=3000
|
Reference in New Issue
Block a user