diff --git a/Dockerfile b/Dockerfile index eb6c1b7..d56556b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,6 +54,8 @@ USER imnyang # Copy only the compiled binary from the build stage. COPY --from=build /bin/server /app/ +RUN mkdir -p /app/uploads + # Rocket: listen on all interfaces inside the container. ENV ROCKET_ADDRESS=0.0.0.0 diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..dfa4758 --- /dev/null +++ b/compose.yml @@ -0,0 +1,8 @@ +services: + app: + image: git.mizuki.guru/imnyang/paste:latest + ports: + - "11108:8000" + volumes: + - ./uploads:/app/uploads + - ./config.toml:/app/config.toml