resh install on Ubuntu Server with Docker at OS level then explore Podman Quadlet
This commit is contained in:
9
opt/copy/gitea/.env
Normal file
9
opt/copy/gitea/.env
Normal file
@ -0,0 +1,9 @@
|
||||
GITEA__database__DB_TYPE=postgres
|
||||
GITEA__database__HOST=postgres:5432
|
||||
GITEA__database__NAME=gitea
|
||||
GITEA__database__USER=gitea
|
||||
GITEA__database__PASSWD=gitea
|
||||
|
||||
POSTGRES_USER=gitea
|
||||
POSTGRES_PASSWORD=gitea
|
||||
POSTGRES_DB=gitea
|
37
opt/copy/gitea/compose.yaml
Normal file
37
opt/copy/gitea/compose.yaml
Normal file
@ -0,0 +1,37 @@
|
||||
services:
|
||||
postgres:
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
image: postgres:14
|
||||
restart: always
|
||||
volumes:
|
||||
- gitea-postgres:/var/lib/postgresql/data
|
||||
server:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_started
|
||||
environment:
|
||||
- GITEA__database__DB_TYPE=${GITEA__database__DB_TYPE}
|
||||
- GITEA__database__HOST=${GITEA__database__HOST}
|
||||
- GITEA__database__NAME=${GITEA__database__NAME}
|
||||
- GITEA__database__USER=${GITEA__database__USER}
|
||||
- GITEA__database__PASSWD=${GITEA__database__PASSWD}
|
||||
image: gitea/gitea:latest-rootless
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 2222:2222
|
||||
restart: always
|
||||
volumes:
|
||||
- gitea-data:/var/lib/gitea
|
||||
- gitea-config:/etc/gitea
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
volumes:
|
||||
gitea-config:
|
||||
driver: local
|
||||
gitea-data:
|
||||
driver: local
|
||||
gitea-postgres:
|
||||
driver: local
|
Reference in New Issue
Block a user