2021-05-09 22:07:17 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
2023-07-05 23:42:45 +02:00
|
|
|
image: gitea/gitea:1.19.4-rootless
|
2021-05-09 22:07:17 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
expose:
|
|
|
|
- "3000"
|
|
|
|
ports:
|
|
|
|
- "${SSH_PORT}:22"
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- default
|
|
|
|
volumes:
|
|
|
|
- /etc/timezone/:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- ${DATA_PATH}/app/data:/var/lib/gitea
|
2021-11-10 16:30:14 +01:00
|
|
|
- ${GNOUS_WEB_PATH}:/var/lib/apache
|
2021-05-09 22:07:17 +02:00
|
|
|
- ${DATA_PATH}/app/config:/etc/gitea
|
2021-09-18 15:51:01 +02:00
|
|
|
env_file: secrets/app.secrets
|
2021-05-09 22:07:17 +02:00
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
2022-11-04 00:05:57 +01:00
|
|
|
- GNUPGHOME=/var/lib/gitea/git/.gnupg
|
2021-05-09 22:07:17 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.docker.network=proxy"
|
2023-02-01 18:43:13 +01:00
|
|
|
- "traefik.http.services.gitea-svc.loadbalancer.server.port=3000"
|
|
|
|
- "traefik.http.routers.gitea.service=gitea-svc"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.gitea.entrypoints=websecure"
|
2023-02-01 18:43:13 +01:00
|
|
|
- "traefik.http.routers.gitea.rule=Host(`${CN}`)"
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
db:
|
2023-05-26 17:06:36 +02:00
|
|
|
image: postgres:13.11-alpine
|
2021-09-18 15:51:01 +02:00
|
|
|
env_file: ./secrets/db.secrets
|
2021-05-09 22:07:17 +02:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ${DATA_PATH}/db/data:/var/lib/postgresql/data
|
|
|
|
- ${DATA_PATH}/db/.pgpass:/root/.pgpass
|
2023-05-26 17:06:36 +02:00
|
|
|
labels:
|
|
|
|
- "co.elastic.logs/module=postgresql"
|
|
|
|
- "co.elastic.logs/fileset=log"
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|