File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed
Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1+ FROM debian:12
2+ RUN apt update && apt install -y curl libpq-dev libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*
3+
4+ ENV DATABASE_URL=${DATABASE_URL}
5+ ENV JWT_SECRET=${JWT_SECRET}
6+ ENV EMAIL_USER=${EMAIL_USER}
7+ ENV EMAIL_PASS=${EMAIL_PASS}
8+ ENV EMAIL_RELAY=${EMAIL_RELAY}
9+ ENV EMAIL_RELAY_PORT=${EMAIL_RELAY_PORT}
10+ ENV FRONTEND_URL=${FRONTEND_URL}
11+ ENV SERVER_NAME=${SERVER_NAME}
12+ ENV MONITORING_EMAIL=${MONITORING_EMAIL}
13+ ENV SENDER_EMAIL=${SENDER_EMAIL}
14+ ENV SENDER_NAME=${SENDER_NAME}
15+ ENV BRAND=${BRAND}
Original file line number Diff line number Diff line change 11services :
22 nginx :
3- image : nginx:1.25
3+ build :
4+ dockerfile : nginx/Dockerfile
45 restart : always
56 depends_on :
67 backend :
@@ -32,10 +33,11 @@ services:
3233 - ../db_connector:/db_connector
3334
3435 backend :
35- image : rust:1-bookworm
3636 restart : always
3737 container_name : backend
38- command : ./backend
38+ command : bash -c "ulimit -n 10000 && exec ./backend"
39+ build :
40+ dockerfile : backend/Dockerfile
3941 user : " ${UID:-1000}:${GID:-1000}"
4042 depends_on :
4143 postgres :
Original file line number Diff line number Diff line change 1+ FROM nginx:1.25
2+ ENV SERVICEDOMAIN=${SERVICEDOMAIN}
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ upstream host_service {
22 server backend:8081;
33}
44
5+ worker_rlimit_nofile 10000;
6+
57map $remote_addr $remote_addr_anon {
68 ~(?P<ip>\d+\.\d+\.\d+)\. $ip.0;
79 ~(?P<ip>[^:]+:[^:]+): $ip::;
You can’t perform that action at this time.
0 commit comments