Refactor gitea app: deploy with ansible
This commit is contained in:
3
files/gitea/.env
Normal file
3
files/gitea/.env
Normal file
@ -0,0 +1,3 @@
|
||||
WEB_SERVER_PORT=9494
|
||||
USER_UID=1000
|
||||
USER_GID=1000
|
1
files/gitea/.gitignore
vendored
Normal file
1
files/gitea/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
data/
|
17
files/gitea/docker-compose.yml.j2
Normal file
17
files/gitea/docker-compose.yml.j2
Normal file
@ -0,0 +1,17 @@
|
||||
services:
|
||||
|
||||
server:
|
||||
image: gitea/gitea:1.22.6
|
||||
restart: unless-stopped
|
||||
container_name: gitea_web_app
|
||||
environment:
|
||||
- "USER_UID=${USER_UID}"
|
||||
- "USER_GID=${USER_GID}"
|
||||
- "GITEA__server__SSH_PORT=2222"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "${WEB_SERVER_PORT}:3000"
|
||||
- "2222:22"
|
Reference in New Issue
Block a user