mirror of
https://github.com/acedanger/docker.git
synced 2025-12-05 22:50:17 -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
|
||||
@@ -3,10 +3,12 @@ services:
|
||||
image: ghcr.io/usememos/memos:latest
|
||||
container_name: memos
|
||||
volumes:
|
||||
- ./.memos/:/var/opt/memos
|
||||
- memos:/var/opt/memos
|
||||
ports:
|
||||
- 5230:5230
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- diun.enable=true
|
||||
volumes:
|
||||
memos: null
|
||||
networks: {}
|
||||
|
||||
46
plex/docker-compose.yml
Normal file
46
plex/docker-compose.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
plex:
|
||||
image: lscr.io/linuxserver/plex:latest
|
||||
container_name: plex
|
||||
# network_mode: host
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: 1
|
||||
capabilities:
|
||||
- gpu
|
||||
ports:
|
||||
- 32400:32400/tcp
|
||||
- 3005:3005/tcp
|
||||
- 8324:8324/tcp
|
||||
- 32469:32469/tcp
|
||||
- 1900:1900/udp
|
||||
- 32410:32410/udp
|
||||
- 32412:32412/udp
|
||||
- 32413:32413/udp
|
||||
- 32414:32414/udp
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=America/New_York
|
||||
- VERSION=docker
|
||||
- PLEX_CLAIM=${PLEX_CLAIM}
|
||||
- NVIDIA_VISIBLE_DEVICES=all
|
||||
- NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
|
||||
# - <path/to/transcode/temp>:/transcode
|
||||
volumes:
|
||||
- plex_data:/config
|
||||
- /mnt/share/media/movies_kids:/movies_kids
|
||||
- /mnt/share/media/movies:/movies
|
||||
- /mnt/share/media/anime:/anime
|
||||
- /mnt/share/media/babies:/babies
|
||||
- /mnt/share/media/books_narrated:/books_narrated
|
||||
- /mnt/share/media/audiobooks:/audiobooks
|
||||
- /mnt/share/media/tv:/tv
|
||||
- /mnt/share/media/youtube:/youtube
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
plex_data: null
|
||||
networks: {}
|
||||
Reference in New Issue
Block a user