42 lines
989 B
YAML
42 lines
989 B
YAML
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"
|
|
|