Explicitly expose backend ports in Dockerfile
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -8,5 +8,7 @@ RUN npm run build
|
|||||||
FROM node:alpine
|
FROM node:alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app ./
|
COPY --from=builder /app ./
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
CMD ["npm", "run", "start:prod"]
|
CMD ["npm", "run", "start:prod"]
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ import { AppModule } from './app.module';
|
|||||||
|
|
||||||
async function bootstrap() {
|
async function bootstrap() {
|
||||||
const app = await NestFactory.create(AppModule);
|
const app = await NestFactory.create(AppModule);
|
||||||
await app.listen(3500);
|
await app.listen(3000);
|
||||||
}
|
}
|
||||||
bootstrap();
|
bootstrap();
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ services:
|
|||||||
- traefik.http.routers.aboutme-secure.rule=(Host(`tsotr.humenius.me`) && Path(`/api`))
|
- traefik.http.routers.aboutme-secure.rule=(Host(`tsotr.humenius.me`) && Path(`/api`))
|
||||||
- traefik.http.routers.aboutme-secure.tls=true
|
- traefik.http.routers.aboutme-secure.tls=true
|
||||||
- traefik.http.routers.aboutme-secure.tls.certresolver=http
|
- traefik.http.routers.aboutme-secure.tls.certresolver=http
|
||||||
- traefik.http.services.aboutme.loadbalancer.server.port=3500
|
- traefik.http.services.aboutme.loadbalancer.server.port=3000
|
||||||
- traefik.docker.network=proxy
|
- traefik.docker.network=proxy
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user