Added the docker-compose file so I can run this service on my server

This commit is contained in:
2024-11-18 18:03:50 -07:00
parent 192ddac1da
commit a1ff421ff7
2 changed files with 17 additions and 2 deletions
+2 -2
View File
@@ -17,5 +17,5 @@ RUN useradd aclarke
USER aclarke
WORKDIR /home/aclarke
ENV TERM=xterm
CMD ["/bin/ttyd", "--max-clients", "5", "--writable", "--port", "8080", "/bin/alexjclarke/clash"]
EXPOSE 8080
CMD ["/bin/ttyd", "--max-clients", "5", "--writable", "--port", "7681", "/bin/alexjclarke/clash"]
EXPOSE 7681
+15
View File
@@ -0,0 +1,15 @@
---
services:
clash:
build:
context: .
dockerfile: Dockerfile
ports:
- 7681:7681
volumes:
- .:/usr/src/clash
stdin_open: true
tty: true
environment:
- TZ=America/Denver
restart: unless-stopped