mirror of
https://github.com/meienberger/runtipi.git
synced 2024-09-11 12:15:48 +03:00
chore(docker-compose): remove reverse-proxy when in dev mode
This commit is contained in:
parent
2571d96e11
commit
b157e0ec2f
@ -1,23 +1,6 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
reverse-proxy:
|
||||
container_name: reverse-proxy
|
||||
image: traefik:v2.8
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- ${NGINX_PORT-80}:80
|
||||
- ${NGINX_PORT_SSL-443}:443
|
||||
- 8080:8080
|
||||
command: --providers.docker
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ${PWD}/traefik:/root/.config
|
||||
- ${PWD}/traefik/shared:/shared
|
||||
- ${PWD}/traefik/letsencrypt:/letsencrypt
|
||||
networks:
|
||||
- tipi_main_network
|
||||
|
||||
tipi-db:
|
||||
container_name: tipi-db
|
||||
image: postgres:14
|
||||
@ -75,6 +58,8 @@ services:
|
||||
REDIS_HOST: ${REDIS_HOST}
|
||||
networks:
|
||||
- tipi_main_network
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
# - /dashboard/node_modules
|
||||
# - /dashboard/.next
|
||||
@ -85,13 +70,6 @@ services:
|
||||
- ${PWD}/apps:/runtipi/apps
|
||||
- ${PWD}/logs:/app/logs
|
||||
- ${STORAGE_PATH}:/app/storage
|
||||
labels:
|
||||
traefik.enable: true
|
||||
# Web
|
||||
traefik.http.routers.dashboard.rule: PathPrefix("/")
|
||||
traefik.http.routers.dashboard.service: dashboard
|
||||
traefik.http.routers.dashboard.entrypoints: web
|
||||
traefik.http.services.dashboard.loadbalancer.server.port: 3000
|
||||
|
||||
networks:
|
||||
tipi_main_network:
|
||||
@ -100,6 +78,5 @@ networks:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 10.21.21.0/24
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
|
@ -35,6 +35,6 @@ esbuild
|
||||
bundle: true,
|
||||
minify: isDev,
|
||||
sourcemap: isDev,
|
||||
watch: isDev,
|
||||
watch: false,
|
||||
})
|
||||
.finally(onRebuild);
|
||||
|
Loading…
Reference in New Issue
Block a user