commit
1d94ce4864
@ -0,0 +1,22 @@ |
||||
# Global Settings |
||||
LOCAL_STACK_DIR=/srv/docker/volumes/gitea |
||||
|
||||
# Networks |
||||
NETWORK=webservices |
||||
|
||||
# Gitea and Database |
||||
DB_TYPE=postgres |
||||
DB_HOST=db:5432 |
||||
DB_NAME=gitea |
||||
DB_USER=gitea |
||||
DB_PASSWD=passwordhere |
||||
|
||||
# Gitea |
||||
GT_IMG= |
||||
GT_TAG= |
||||
GT_CONTAINER_NAME= |
||||
|
||||
# Database |
||||
DB_IMG= |
||||
DB_TAG= |
||||
DB_CONTAINER_NAME= |
@ -0,0 +1 @@ |
||||
*.env |
@ -0,0 +1,48 @@ |
||||
version: "3.1" |
||||
|
||||
services: |
||||
server: |
||||
image: ${GT_IMG:-gitea/gitea}:${GT_TAG:-latest} |
||||
container_name: ${GT_CONTAINER_NAME} |
||||
restart: unless-stopped |
||||
networks: |
||||
- default |
||||
- gitea |
||||
volumes: |
||||
- ${LOCAL_STACK_DIR}/data:/data |
||||
- /etc/timezone:/etc/timezone:ro |
||||
- /etc/localtime:/etc/localtime:ro |
||||
ports: |
||||
- "127.0.0.1:2222:22" |
||||
expose: |
||||
- "3000" |
||||
depends_on: |
||||
- db |
||||
env_file: |
||||
- gitea.env |
||||
environment: |
||||
- DB_TYPE=${DB_TYPE} |
||||
- DB_HOST=${DB_HOST} |
||||
- DB_NAME=${DB_NAME} |
||||
- DB_USER=${DB_USER} |
||||
- DB_PASSWD=${DB_PASSWD} |
||||
|
||||
db: |
||||
image: ${DB_IMG:-postgres}:${DB_TAG:-12.4} |
||||
container_name: ${DB_CONTAINER_NAME-gitea-db} |
||||
restart: unless-stopped |
||||
environment: |
||||
- POSTGRES_USER=${DB_USER} |
||||
- POSTGRES_PASSWORD=${DB_PASSWD} |
||||
- POSTGRES_DB=${DB_NAME} |
||||
networks: |
||||
- gitea |
||||
volumes: |
||||
- ${LOCAL_STACK_DIR}/postgres_new:/var/lib/postgresql/data |
||||
|
||||
networks: |
||||
default: |
||||
external: |
||||
name: ${NETWORK} |
||||
gitea: |
||||
external: false |
@ -0,0 +1,13 @@ |
||||
# Gitea |
||||
# Info: https://docs.gitea.io/en-us/install-with-docker/#environments-variables |
||||
GITEA_CUSTOM=/data/gitea/custom |
||||
RUN_MODE=prod |
||||
HTTP_PORT=3000 |
||||
ROOT_URL=https://git.domain.tld |
||||
DISABLE_SSH=true |
||||
|
||||
# Reverse-proxy and certbot |
||||
VIRTUAL_HOST=git.domain.tld |
||||
VIRTUAL_PORT=3000 |
||||
LETSENCRYPT_HOST=git.domain.tld |
||||
LETSENCRYPT_EMAIL=username@domain.tld |
Loading…
Reference in new issue