This commit is contained in:
parent
3da1ce6aa9
commit
caab73a934
2 changed files with 5 additions and 3 deletions
|
@ -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/LICENSE /app/LICENSE
|
||||||
COPY --from=builder /usr/src/ewp/static /app/static
|
COPY --from=builder /usr/src/ewp/static /app/static
|
||||||
COPY --from=builder /usr/src/ewp/templates /app/templates
|
COPY --from=builder /usr/src/ewp/templates /app/templates
|
||||||
COPY --from=builder /usr/src/ewp/data /app/data
|
|
||||||
|
|
||||||
RUN mkdir /app/config \
|
RUN mkdir /app/config \
|
||||||
|
&& mkdir /app/data \
|
||||||
&& touch /app/config/config.toml
|
&& touch /app/config/config.toml
|
||||||
|
|
||||||
CMD [ "./ewp" ]
|
CMD [ "./ewp" ]
|
||||||
|
|
|
@ -17,7 +17,8 @@ services:
|
||||||
image: git.mylloon.fr/anri/mylloon.fr:latest
|
image: git.mylloon.fr/anri/mylloon.fr:latest
|
||||||
container_name: EWP
|
container_name: EWP
|
||||||
volumes:
|
volumes:
|
||||||
- /here/your/path:/app/config
|
- /here/your/path/config:/app/config
|
||||||
|
- /here/your/path/data:/app/data
|
||||||
ports:
|
ports:
|
||||||
- 80:8080
|
- 80:8080
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -53,7 +54,8 @@ services:
|
||||||
network_mode: bridge
|
network_mode: bridge
|
||||||
hostname: ewp
|
hostname: ewp
|
||||||
volumes:
|
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:
|
ports:
|
||||||
- 99:8080
|
- 99:8080
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
Loading…
Reference in a new issue