feat: 0.0.1

This commit is contained in:
root
2026-02-24 18:13:11 +00:00
commit 8e2ed8b750
5 changed files with 109 additions and 0 deletions

51
docker-compose.yml Normal file
View File

@@ -0,0 +1,51 @@
version: "3"
services:
gitea:
image: docker.gitea.com/gitea:latest
depends_on:
- db
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=${POSTGRES_DB}
- GITEA__database__USER=${POSTGRES_USER}
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# ports:
# - "222:22"
restart: always
db:
image: postgres:17
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
restart: always
nginx:
image: nginx:stable-alpine
build:
dockerfile: nginx.Dockerfile
args:
SERVER_NAME: ${SERVER_NAME}
ports:
- "443:443"
- "80:80"
volumes:
- /etc/letsencrypt:/etc/letsencrypt:ro
depends_on:
- gitea
restart: always