2023-08-03 00:22:46 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres
|
2023-08-07 17:50:23 +00:00
|
|
|
container_name: postgres-gitea
|
2023-08-03 00:22:46 +00:00
|
|
|
volumes:
|
|
|
|
- db:/var/lib/postgresql/data
|
|
|
|
env_file:
|
|
|
|
- .env-postgres
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea
|
|
|
|
container_name: gitea
|
|
|
|
env_file:
|
|
|
|
- .env-gitea
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
volumes:
|
|
|
|
- git:/data
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-08-06 15:02:21 +00:00
|
|
|
- "traefik.http.routers.gitea-websecure.entrypoints=websecure"
|
2023-08-06 15:13:20 +00:00
|
|
|
- "traefik.http.routers.gitea-websecure.rule=Host(`gitea.meftimes.com`)"
|
2023-08-03 00:22:46 +00:00
|
|
|
- "traefik.http.services.gitea-websecure.loadbalancer.server.port=3000"
|
|
|
|
networks:
|
|
|
|
- backend
|
|
|
|
- proxy
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
git:
|
|
|
|
db:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|
|
|
|
backend:
|
|
|
|
external: true
|