chore: docker-compose + traefik deployment for aqua.dev.kkhost.pl (#8)
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.git
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
# Stage 1: Build
|
||||||
|
FROM node:22-alpine AS build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm ci
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# Stage 2: Serve
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
# Use default nginx config (serves /usr/share/nginx/html on port 80)
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
services:
|
||||||
|
aquarium:
|
||||||
|
build: .
|
||||||
|
container_name: aquarium
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- dev_net
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.aquarium.rule=Host(`aqua.dev.kkhost.pl`)"
|
||||||
|
- "traefik.http.routers.aquarium.entrypoints=web"
|
||||||
|
- "traefik.http.services.aquarium.loadbalancer.server.port=80"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
dev_net:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user