fixed docker-compose.yml with comments
This commit is contained in:
9
data/README.md
Normal file
9
data/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Gitea Data directory
|
||||||
|
|
||||||
|
This directory is intended to store all the data files for Gitea, including repositories, configuration files, logs, and other necessary data.
|
||||||
|
|
||||||
|
## Structure
|
||||||
|
|
||||||
|
./pkgs
|
||||||
|
./data
|
||||||
|
|
||||||
@@ -1,20 +1,25 @@
|
|||||||
services:
|
services:
|
||||||
runner:
|
runner:
|
||||||
image: docker.io/gitea/act_runner:nightly
|
image: docker.io/gitea/act_runner:nightly
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
CONFIG_FILE: /config.yaml
|
CONFIG_FILE: /config.yaml # <-- Path to the runner configuration file inside the container
|
||||||
GITEA_INSTANCE_URL: http://gitea:3000/
|
GITEA_INSTANCE_URL: http://gitea:3000/ # <-- Use the internal Docker network URL
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN: znrn4iy94Zx2OWwQx4UHkdWMOH6ISBQ6NVfdkf4K
|
GITEA_RUNNER_REGISTRATION_TOKEN: asdasd # <-- REPLACE WITH YOUR REGISTRATION TOKEN
|
||||||
GITEA_RUNNER_NAME: FastFlaskRunner
|
GITEA_RUNNER_NAME: FastFlaskRunner
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.yaml:/config.yaml
|
- ./config/runner.yaml:/config.yaml # <-- Mount for runner configuration
|
||||||
- /prod/pkgs:/prod/pkgs
|
- ./data/prod/pkgs:/prod/pkgs # <-- Mount for production packages
|
||||||
- /prod/data:/prod/data
|
- ./data/prod/data:/prod/data # <-- Mount for production data
|
||||||
- /prod/develop/data:/develop/data
|
- ./data/develop:/develop/data # <-- Mount for development data
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock # <-- Mount Docker socket for Docker-in-Docker functionality (DoNotChange)
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- gitea
|
- gitea
|
||||||
|
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- fast-services
|
- fast-services
|
||||||
|
|
||||||
@@ -23,19 +28,19 @@ services:
|
|||||||
container_name: gitea
|
container_name: gitea
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- ROOT_URL=https://git.nxs.solutions/
|
- ROOT_URL=https://git.nxs.solutions/ # <-- Change to your Gitea URL either Domain or IP with protocol
|
||||||
# Map container ports to host ports (Web UI: 3000, SSH: 2222)
|
|
||||||
ports:
|
ports:
|
||||||
- "2222:22"
|
- "2222:22" # <-- SSH access for Git operations (Change if needed to your preferred port)
|
||||||
|
# - "3000:3000" # Uncomment if you want to expose Gitea web interface directly (needed if not rooted behind a reverse proxy)
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# Persistent storage for Gitea data, configuration, repositories, etc.
|
# Persistent storage for Gitea data, configuration, repositories, etc.
|
||||||
# Maps a named volume 'gitea_data' to the container's /data directory.
|
# Maps a named volume 'gitea_data' to the container's /data directory.
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
# Timezone settings for consistent timekeeping
|
- /etc/timezone:/etc/timezone:ro # <--- Timezone settings
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/localtime:/etc/localtime:ro # <--- Timezone settings
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- ./data/git:/data/host_repos:ro # <--- Mount for Git repositories
|
||||||
- /srv/git:/data/host_repos:ro # <--- ADD THIS LINE
|
- ./logs/:/data/gitea/log/:rw # <--- Mount for Gitea logs (neccessary for debugging and fail2ban)
|
||||||
- ./logs/:/data/gitea/log/:rw
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
- fast-services
|
- fast-services
|
||||||
@@ -46,7 +51,6 @@ services:
|
|||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
fast-services:
|
fast-services:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user