diff --git a/Dockerfile b/Dockerfile index 68fea5b..bb4a4cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,9 @@ COPY --from=builder /usr/local/cargo/bin/ewp /app/ewp COPY --from=builder /usr/src/ewp/LICENSE /app/LICENSE COPY --from=builder /usr/src/ewp/static /app/static COPY --from=builder /usr/src/ewp/templates /app/templates -COPY --from=builder /usr/src/ewp/data /app/data RUN mkdir /app/config \ + && mkdir /app/data \ && touch /app/config/config.toml CMD [ "./ewp" ] diff --git a/README.md b/README.md index 080b625..fbbd528 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,8 @@ services: image: git.mylloon.fr/anri/mylloon.fr:latest container_name: EWP volumes: - - /here/your/path:/app/config + - /here/your/path/config:/app/config + - /here/your/path/data:/app/data ports: - 80:8080 restart: unless-stopped @@ -53,7 +54,8 @@ services: network_mode: bridge hostname: ewp volumes: - - /here/your/path/ewp/app:/app/config + - /here/your/path/ewp/app/config:/app/config + - /here/your/path/ewp/app/data:/app/data ports: - 99:8080 restart: unless-stopped