first commit
This commit is contained in:
74
docker-compose.yml
Normal file
74
docker-compose.yml
Normal file
@@ -0,0 +1,74 @@
|
||||
networks:
|
||||
nginx:
|
||||
driver: bridge
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
gitea:
|
||||
driver: local
|
||||
|
||||
services:
|
||||
gitea:
|
||||
image: docker.gitea.com/gitea:1.24.5
|
||||
container_name: gitea
|
||||
environment:
|
||||
USER_UID: 1000
|
||||
USER_GID: 1000
|
||||
|
||||
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}
|
||||
|
||||
GITEA__server__DOMAIN: ${GITEA__server__DOMAIN}
|
||||
GITEA__server__ROOT_URL: ${GITEA__server__ROOT_URL}
|
||||
|
||||
GITEA__server__STATIC_URL_PREFIX: ${GITEA__server__STATIC_URL_PREFIX}
|
||||
GITEA__server__STATIC_ROOT_PATH: ${GITEA__server__STATIC_ROOT_PATH}
|
||||
# GITEA_RUNNER_REGISTRATION_TOKEN can be used to set a global runner registration token.
|
||||
# The Gitea version must be v1.23 or higher.
|
||||
# It's also possible to use GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN}
|
||||
restart: always
|
||||
networks:
|
||||
- nginx
|
||||
volumes:
|
||||
# - gitea:/data
|
||||
- ./data:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./app.ini:/data/gitea/conf/app.ini
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "222:22"
|
||||
healthcheck:
|
||||
# checks availability of Gitea's front-end with curl
|
||||
test: ["CMD", "curl", "-f", "https://gitea.novicelab.io"]
|
||||
interval: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
timeout: 10s
|
||||
|
||||
# runner:
|
||||
# image: gitea/act_runner
|
||||
# container_name: gitea-runner
|
||||
# restart: always
|
||||
# depends_on:
|
||||
# gitea:
|
||||
# # required so runner can attach to gitea, see "healthcheck"
|
||||
# condition: service_healthy
|
||||
# restart: true
|
||||
# volumes:
|
||||
# - ./runner-data/act_runner:/data
|
||||
# - /var/run/docker.sock:/var/run/docker.sock
|
||||
# environment:
|
||||
# GITEA_INSTANCE_URL: "https://gitea.novicelab.io"
|
||||
# # When using Docker Secrets, it's also possible to use
|
||||
# # GITEA_RUNNER_REGISTRATION_TOKEN_FILE to pass the location.
|
||||
# # The env var takes precedence.
|
||||
# # Needed only for the first start.
|
||||
# GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN}
|
||||
# networks:
|
||||
# - nginx
|
||||
|
||||
Reference in New Issue
Block a user