mirror of
https://github.com/acedanger/docker.git
synced 2025-12-06 02:10:12 -08:00
Add Docker Compose configurations for Gitea and Plex services
This commit is contained in:
52
git/compose.yml
Normal file
52
git/compose.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
---
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea-server
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=postgres
|
||||
- GITEA__database__HOST=${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}
|
||||
- GITEA__database__NAME=${POSTGRES_DB:?POSTGRES_DB not set}
|
||||
- GITEA__database__USER=${POSTGRES_USER:?POSTGRES_USER not set}
|
||||
- GITEA__database__PASSWD=${POSTGRES_PASSWORD:?POSTGRES_PASSWORD not set}
|
||||
- GITEA__server__SSH_PORT=2221
|
||||
- GITEA__server__ROOT_URL=https://git.ptrwd.com
|
||||
# --> (Optional) When using traefik...
|
||||
# networks:
|
||||
# - frontend
|
||||
# <--
|
||||
# --> (Optional) When using an internal database...
|
||||
# - backend
|
||||
# <--
|
||||
volumes:
|
||||
- gitea-data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "3200:3000"
|
||||
- "2221:22"
|
||||
depends_on:
|
||||
- db
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: postgres:14
|
||||
container_name: gitea-db
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER:?POSTGRES_USER not set}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?POSTGRES_PASSWORD not set}
|
||||
- POSTGRES_DB=${POSTGRES_DB:?POSTGRES_DB not set}
|
||||
networks:
|
||||
- backend
|
||||
volumes:
|
||||
- gitea-db:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
|
||||
volumes:
|
||||
gitea-data:
|
||||
driver: local
|
||||
backend:
|
||||
external: true
|
||||
Reference in New Issue
Block a user