Refactored Compose file configurations for services

This commit is contained in:
2025-12-05 14:01:04 -05:00
parent 1ed91f56ed
commit 9442f4e90e
4 changed files with 57 additions and 56 deletions

57
compose.yml Normal file
View File

@@ -0,0 +1,57 @@
---
networks:
frontend:
driver: bridge
backend:
driver: bridge
local:
driver: host
volumes:
gitea.vol:
opengist.vol:
# grocy.vol:
services:
gitea:
image: docker.gitea.com/gitea:latest
container_name: gitea
environment:
- USER_UID=$(id -u $USER)
- USER_GID=$(id -u $USER)
restart: always
networks:
- gitea
volumes:
- gitea.vol:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 3000:3000
- 2222:2222
grocy:
image: lscr.io/linuxserver/grocy:latest
container_name: grocy
environment:
- PUID=$(id -u $USER)
- PGID=$(id -u $USER)
- TZ=Etc/UTC
volumes:
# - grocy.vol:/data
- ~/.config/grocy:/config
- /etc/timezone:/etc/timezone:ro
ports:
- 9283:9283
restart: unless-stopped
opengist:
image: ghcr.io/thomiceli/opengist:latest
container_name: opengist
restart: unless-stopped
ports:
- 6157:6157
- 2222:2223
volumes:
- opengist.vol:/opengist
- ~/.config/opengist/config.yml:/config.yml"
environment:
OG_SSH_PORT: 22
UID: $(id -u $USER)
GID: $(id -u $USER)