diff --git a/compose.yaml b/compose.yaml index 0f0b1023c..23fa926cd 100644 --- a/compose.yaml +++ b/compose.yaml @@ -31,7 +31,9 @@ services: - app:/app/storage frontend: - image: caddy:2.9.1-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