use docker compose instead

This commit is contained in:
2026-05-13 14:08:41 -04:00
parent 89952369f0
commit 1ca802dc2a
9 changed files with 55 additions and 42 deletions
+41
View File
@@ -0,0 +1,41 @@
volumes:
postgres:
driver: local
gitea:
driver: local
services:
caddy:
image: caddy:2-alpine
ports:
- 80:80
- 443:443
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/test1.html:/var/www/html/test1/index.html
- ./caddy/test2.html:/var/www/html/test2/index.html
postgres:
image: postgres:18-alpine
environment:
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/var/lib/postgresql/18/docker
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
gitea:
image: docker.gitea.com/gitea:1.26.1
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=postgres
- GITEA__database__NAME=giteadb
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
depends_on:
- postgres
volumes:
- gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "2222:22"