First version
This commit is contained in:
@@ -0,0 +1,43 @@
|
|||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:17
|
||||||
|
container_name: Gitea-DB
|
||||||
|
hostname: gitea-db
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "pg_isready", "-q", "-d", "gitea", "-U", "giteauser"]
|
||||||
|
timeout: 45s
|
||||||
|
interval: 10s
|
||||||
|
retries: 10
|
||||||
|
volumes:
|
||||||
|
- /var/lib/docker/volumes/gitea/db:/var/lib/postgresql/data:rw
|
||||||
|
environment:
|
||||||
|
- POSTGRES_DB=gitea
|
||||||
|
- POSTGRES_USER=giteauser
|
||||||
|
- POSTGRES_PASSWORD=giteapass
|
||||||
|
restart: on-failure:5
|
||||||
|
|
||||||
|
web:
|
||||||
|
image: gitea/gitea:latest
|
||||||
|
container_name: Gitea
|
||||||
|
hostname: gitea
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
healthcheck:
|
||||||
|
test: wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1
|
||||||
|
ports:
|
||||||
|
- 3052:3000
|
||||||
|
- 2222:22
|
||||||
|
volumes:
|
||||||
|
- /var/lib/docker/volumes/gitea/data:/data
|
||||||
|
- /etc/TZ:/etc/TZ:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- GITEA__database__DB_TYPE=postgres
|
||||||
|
- GITEA__database__HOST=gitea-db:5432
|
||||||
|
- GITEA__database__NAME=gitea
|
||||||
|
- GITEA__database__USER=giteauser
|
||||||
|
- GITEA__database__PASSWD=giteapass
|
||||||
|
- ROOT_URL=http://gitea.maison
|
||||||
|
restart: on-failure:5
|
||||||
Reference in New Issue
Block a user