Skip to content

Commit add01ed

Browse files
committed
added container configs
1 parent 8f3df6a commit add01ed

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:22.7.0-slim
2+
3+
WORKDIR /retroui
4+
5+
COPY ./package.json ./pnpm-lock.yaml ./
6+
RUN npm i pnpm -g \
7+
&& pnpm install --frozen-lockfile --no-cache \
8+
&& pnpm store prune
9+
10+
COPY . .
11+
RUN pnpm run build
12+
13+
EXPOSE 3000
14+
CMD [ "pnpm", "run", "start" ]

infra/Caddyfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
retroui.dev {
2+
reverse_proxy retroui:3000
3+
}

infra/docker-componse.prod.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
services:
2+
web:
3+
image: devarifhossain/retroui:1.02
4+
container_name: retroui
5+
expose:
6+
- "3000"
7+
ports:
8+
- "3000:3000"
9+
caddy:
10+
image: caddy:latest
11+
container_name: caddy_proxy
12+
restart: always
13+
ports:
14+
- "80:80"
15+
- "443:443"
16+
volumes:
17+
- ./Caddyfile:/etc/caddy/Caddyfile
18+
depends_on:
19+
- web

infra/docker-compose.dev.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
services:
2+
web:
3+
container_name: retroui
4+
build:
5+
context: "../"
6+
dockerfile: Dockerfile
7+
ports:
8+
- "3000:3000"

0 commit comments

Comments
 (0)