Add traefik
This commit is contained in:
parent
6674b1f85a
commit
6de0876776
|
@ -24,10 +24,18 @@ services:
|
|||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "100.104.163.2:4003:3000"
|
||||
- "4003:3000"
|
||||
- "222:22"
|
||||
depends_on:
|
||||
- db
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.quartz.rule=Host(`git.velouria.dev`)"
|
||||
- "traefik.http.routers.quartz.entrypoints=websecure"
|
||||
- "traefik.http.routers.quartz.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.quartz.loadbalancer.server.port=4003"
|
||||
networks:
|
||||
- traefik_network
|
||||
|
||||
db:
|
||||
image: postgres:14
|
||||
|
@ -40,3 +48,7 @@ services:
|
|||
- gitea
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
|
||||
networks:
|
||||
traefik_network:
|
||||
external: true
|
|
@ -9,6 +9,6 @@ services:
|
|||
ports:
|
||||
- "100.104.163.2:4001:3000"
|
||||
volumes:
|
||||
- /path/to/config:/app/config # Make sure your local config directory exists
|
||||
- ${PWD}/config:/app/config # Make sure your local config directory exists
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # optional, for docker integrations
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue