First commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Exposed port to access gitea's ui and setup
|
||||
GITEA_WEB_PORT=3000
|
||||
# (optional) gitea ssh port
|
||||
GITEA_SSH_PORT=22
|
||||
|
||||
# Location of gitea db and repo files
|
||||
GITEA_DATA_DIR=/srv/gitea
|
||||
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
server:
|
||||
image: docker.gitea.com/gitea:latest
|
||||
container_name: gitea
|
||||
env_file:
|
||||
.env
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
# Where the config file will be located IN THE CONTAINER, not the local machine, does not need to be changed
|
||||
- GITEA_APP_INI="/data/gitea/conf/app.ini"
|
||||
volumes:
|
||||
- ${GITEA_DATA_DIR}:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- ${GITEA_WEB_PORT}:3000
|
||||
- ${GITEA_SSH_PORT}:22
|
||||
restart: always
|
||||
networks:
|
||||
- gitea
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
Reference in New Issue
Block a user