cleanup
This commit is contained in:
parent
e18d26f6f9
commit
86898fa117
|
@ -1,7 +1,11 @@
|
|||
FROM node:22-bullseye
|
||||
ARG APP_PORT
|
||||
ENV APP_PORT $APP_PORT
|
||||
COPY . .
|
||||
COPY migrations migrations
|
||||
COPY public public
|
||||
COPY views views
|
||||
COPY src src
|
||||
COPY entrypoint.sh migrate.sh package.json package-lock.json .
|
||||
RUN npm i
|
||||
EXPOSE $APP_PORT
|
||||
ENTRYPOINT ["bash", "./entrypoint.sh"]
|
||||
|
|
5
TODO
5
TODO
|
@ -1,5 +0,0 @@
|
|||
[ ] Fully implement and test proxies
|
||||
[ ] Add a counter of tries for a captcha
|
||||
[ ] Make new setting "max tries per captcha"
|
||||
[ ] Unclaim proxy and delete captcha on max tries reached
|
||||
[ ] Add retry to fronted when captcha is entered incorrectly
|
32
patch
32
patch
|
@ -1,32 +0,0 @@
|
|||
diff --git a/Dockerfile b/Dockerfile
|
||||
index 963556b..5938c34 100644
|
||||
--- a/Dockerfile
|
||||
+++ b/Dockerfile
|
||||
@@ -3,6 +3,5 @@ ARG APP_PORT
|
||||
ENV APP_PORT $APP_PORT
|
||||
COPY . .
|
||||
RUN npm i
|
||||
-
|
||||
EXPOSE $APP_PORT
|
||||
-ENTRYPOINT ["node", "./src/index.js"]
|
||||
\ No newline at end of file
|
||||
+ENTRYPOINT ["bash", "./entrypoint.sh"]
|
||||
diff --git a/docker-compose.yml b/docker-compose.yml
|
||||
index 7a90a6a..66af735 100644
|
||||
--- a/docker-compose.yml
|
||||
+++ b/docker-compose.yml
|
||||
@@ -10,6 +10,7 @@ services:
|
||||
volumes:
|
||||
- ./data/uploads:${DATA_DIR}
|
||||
database:
|
||||
+ hostname: database
|
||||
image: 'postgres:15'
|
||||
volumes:
|
||||
- ./data/db:/var/lib/postgresql/data
|
||||
@@ -21,4 +22,4 @@ services:
|
||||
POSTGRES_PASSWORD: ${DBPASS}
|
||||
POSTGRES_DB: ${DBNAME}
|
||||
healthcheck:
|
||||
- test: ["CMD", "pg_isready", "-U", "${DBUSER}"]
|
||||
\ No newline at end of file
|
||||
+ test: ["CMD", "pg_isready", "-U", "${DBUSER}"]
|
Loading…
Reference in New Issue