From 79b146241d58c379f43fbc15c12e0723dc617077 Mon Sep 17 00:00:00 2001 From: ras0q Date: Sat, 21 Dec 2024 18:15:11 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20frontend=20container=E3=81=AE=E3=83=93?= =?UTF-8?q?=E3=83=AB=E3=83=89=E6=99=82=E3=81=ABtraQ-S=5FUI=E3=82=92?= =?UTF-8?q?=E3=83=80=E3=82=A6=E3=83=B3=E3=83=AD=E3=83=BC=E3=83=89=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=8F=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose.yaml | 7 +++---- dev/Dockerfile-frontend | 5 +++++ docs/development.md | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 dev/Dockerfile-frontend diff --git a/compose.yaml b/compose.yaml index fff9f4070..23fa926cd 100644 --- a/compose.yaml +++ b/compose.yaml @@ -31,7 +31,9 @@ services: - app:/app/storage frontend: - image: caddy:2.8.4-alpine + build: + context: ./dev + dockerfile: Dockerfile-frontend restart: always expose: - "80" @@ -39,9 +41,6 @@ services: - "3000:80" depends_on: - backend - volumes: - - ./dev/Caddyfile:/etc/caddy/Caddyfile:ro - - ./dev/frontend:/usr/share/caddy:ro mysql: image: mariadb:10.11.10 diff --git a/dev/Dockerfile-frontend b/dev/Dockerfile-frontend new file mode 100644 index 000000000..c3a19cf97 --- /dev/null +++ b/dev/Dockerfile-frontend @@ -0,0 +1,5 @@ +FROM caddy:2.8.4-alpine + +COPY ./Caddyfile /etc/caddy/Caddyfile + +RUN wget -O - https://github.com/traPtitech/traQ_S-UI/releases/latest/download/dist.tar.gz | tar zxv -C /usr/share/caddy/ --strip-components=2 diff --git a/docs/development.md b/docs/development.md index 947ea1674..b49043dec 100644 --- a/docs/development.md +++ b/docs/development.md @@ -14,7 +14,7 @@ If you want to contribute to traQ, then follow this section. ### Setup Local Server with Docker #### First Up (or entirely rebuild) -`make update-frontend && make up` +`make up` Now you can access to + `http://localhost:3000` for traQ