Compare commits

...

2 Commits

Author SHA1 Message Date
lab
d08b77d390 feat: add gitea 2021-12-02 23:21:17 +08:00
lab
04ca9c09a5 feat: add database/postgres 2021-12-02 23:20:07 +08:00
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,15 @@
version: "3.9"
services:
postgresql:
image: postgres:alpine
container_name: "postgresql"
environment:
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
volumes:
- ./data:/var/lib/postgresql/data
networks:
- database
networks:
database:
external: true

31
gitea/docker-compose.yml Normal file
View File

@ -0,0 +1,31 @@
version: "3.9"
services:
gitea:
image: gitea/gitea
container_name: "git.esin.io"
environment:
- "TZ=Asia/Shanghai"
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitea.rule=Host(`git.esin.io`)"
- "traefik.http.routers.gitea.entrypoints=websecure"
- "traefik.http.routers.gitea.tls=true"
- "traefik.http.routers.gitea.middlewares=gitea-mw"
- "traefik.http.middlewares.gitea-mw.compress=true"
- "traefik.http.middlewares.gitea-mw.compress.excludedcontenttypes=text/event-stream"
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
volumes:
- ./gitea:/data
ports:
- "2222:22"
external_links:
- postgresql
networks:
- traefik
- database
networks:
traefik:
external: true
database:
external: true