feat: add pgweb
This commit is contained in:
parent
5fad534292
commit
2d5d632d16
32
pgweb/docker-compose.yml
Normal file
32
pgweb/docker-compose.yml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
version: "3.9"
|
||||||
|
services:
|
||||||
|
pgweb:
|
||||||
|
image: sosedoff/pgweb
|
||||||
|
container_name: "pgweb.esin.io"
|
||||||
|
environment:
|
||||||
|
- "TZ=Asia/Shanghai"
|
||||||
|
- "SESSIONS=1"
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.pgweb.rule=Host(`pgweb.esin.io`)"
|
||||||
|
- "traefik.http.routers.pgweb.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.pgweb.tls=true"
|
||||||
|
- "traefik.http.routers.pgweb.tls.certresolver=letsencrypt"
|
||||||
|
- "traefik.http.routers.pgweb.tls.domains[0].main=esin.io"
|
||||||
|
- "traefik.http.routers.pgweb.tls.domains[0].sans=*.esin.io"
|
||||||
|
- "traefik.http.routers.pgweb.middlewares=pgweb-mw"
|
||||||
|
- "traefik.http.middlewares.pgweb-mw.compress=true"
|
||||||
|
- "traefik.http.middlewares.pgweb-mw.compress.excludedcontenttypes=text/event-stream"
|
||||||
|
- "traefik.http.services.pgweb.loadbalancer.server.port=8081"
|
||||||
|
external_links:
|
||||||
|
- postgresql
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
priority: 1000
|
||||||
|
database:
|
||||||
|
priority: 100
|
||||||
|
networks:
|
||||||
|
traefik:
|
||||||
|
external: true
|
||||||
|
database:
|
||||||
|
external: true
|
Loading…
x
Reference in New Issue
Block a user