Adicionar labels Traefik para roteamento
This commit is contained in:
@@ -35,8 +35,8 @@ services:
|
|||||||
context: ./frontend
|
context: ./frontend
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
container_name: occto_frontend
|
container_name: occto_frontend
|
||||||
ports:
|
expose:
|
||||||
- "3001:3000"
|
- "3000"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=${NODE_ENV:-production}
|
- NODE_ENV=${NODE_ENV:-production}
|
||||||
- DATABASE_URL=${DATABASE_URL:-postgresql://admin:adminpassword@postgres:5432/occto_db?schema=public}
|
- DATABASE_URL=${DATABASE_URL:-postgresql://admin:adminpassword@postgres:5432/occto_db?schema=public}
|
||||||
@@ -47,6 +47,13 @@ services:
|
|||||||
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-adminpassword}
|
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY:-adminpassword}
|
||||||
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME:-occto-images}
|
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME:-occto-images}
|
||||||
- JWT_SECRET=${JWT_SECRET:-b33500bb3dc5504535c34cc5f79f4ca0f60994b093bded14d48f76c0c090f032234693219e60398cab053a9c55c1d426ef7b1768104db9040254ba7db452f708}
|
- JWT_SECRET=${JWT_SECRET:-b33500bb3dc5504535c34cc5f79f4ca0f60994b093bded14d48f76c0c090f032234693219e60398cab053a9c55c1d426ef7b1768104db9040254ba7db452f708}
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.occto-frontend.rule=Host(`octto.stackbyte.cloud`)"
|
||||||
|
- "traefik.http.routers.occto-frontend.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.occto-frontend.tls.certresolver=letsencrypt"
|
||||||
|
- "traefik.http.services.occto-frontend.loadbalancer.server.port=3000"
|
||||||
|
- "traefik.docker.network=dokploy-network"
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
Reference in New Issue
Block a user