Upload files to "compose/gitea"
This commit is contained in:
parent
de5fb93783
commit
6d48505efe
3
compose/gitea/.env
Normal file
3
compose/gitea/.env
Normal file
@ -0,0 +1,3 @@
|
||||
GITEA__database__NAME=
|
||||
GITEA__database__USER=
|
||||
GITEA__database__PASSWD=
|
28
compose/gitea/docker-compose.yml
Normal file
28
compose/gitea/docker-compose.yml
Normal file
@ -0,0 +1,28 @@
|
||||
networks:
|
||||
frontend:
|
||||
external: true
|
||||
|
||||
services:
|
||||
server:
|
||||
image: gitea/gitea:1.21.7
|
||||
container_name: gitea
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
environment: #double underscores needed for variable
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA__database__DB_TYPE=mysql
|
||||
- GITEA__database__HOST=192.168.1.1:3306 #Database IP
|
||||
- GITEA__database__NAME=${GITEA__database__NAME}
|
||||
- GITEA__database__USER=${GITEA__database__USER}
|
||||
- GITEA__database__PASSWD=${GITEA__database__PASSWD}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- frontend
|
||||
volumes:
|
||||
- /docker/appdata/gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- 3005:3000
|
||||
- 222:22
|
Loading…
Reference in New Issue
Block a user