Files
Elite/mygit/docker-compose.yml
john fecb5cacab Update mygit/docker-compose.yml
Change the restart option from "on failure" to "unless-stopped"
2026-02-04 14:52:14 +00:00

35 lines
910 B
YAML

services:
server:
image: gitea/gitea:latest
environment:
- 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=gitea
- ENABLE_PUSH_CREATE_USER=true
- ENABLE_PUSH_CREATE_ORG=true
restart: unless-stopped
volumes:
- /mnt/cephfs/docker/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
depends_on:
- db
security_opt:
- no-new-privileges:true
db:
image: docker.io/library/postgres:14
restart: unless-stopped
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
- /mnt/cephfs/docker/postgres:/var/lib/postgresql/data