init base docker config

This commit is contained in:
asmigiel 2024-12-22 17:16:16 +01:00
parent b29315661a
commit 101eace98c
3 changed files with 30 additions and 0 deletions

0
Dockerfile Normal file
View File

30
docker-compose.yml Normal file
View File

@ -0,0 +1,30 @@
services:
server:
image: gitea/gitea:1.14.5-rootless
environment:
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=db:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: always
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:2222"
depends_on:
- db
db:
image: postgres:13
restart: always
environment:
- POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea
- POSTGRES_DB=gitea
volumes:
- ./postgres:/var/lib/postgresql/data

0
heroku.yml Normal file
View File