fix missing path to db

This commit is contained in:
Антон
2026-02-07 14:01:20 +03:00
parent 4bd4127bb5
commit f9df3f8d05
3 changed files with 8 additions and 1 deletions

View File

@@ -9,8 +9,12 @@ WORKDIR /app
COPY requirements.txt . COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# Ensure DB directory exists
RUN mkdir -p /app/db
# Copy source code and entrypoint # Copy source code and entrypoint
COPY . . COPY . .
RUN chmod +x entrypoint.sh RUN chmod +x entrypoint.sh
# Expose API port # Expose API port

View File

@@ -8,7 +8,8 @@ if [ ! -c /dev/net/tun ]; then
fi fi
# Enable IP forwarding # Enable IP forwarding
sysctl -w net.ipv4.ip_forward=1 sysctl -w net.ipv4.ip_forward=1 || true
# NAT MASQUERADE # NAT MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

View File

@@ -67,6 +67,8 @@ services:
volumes: volumes:
- ovp_logs:/var/log/openvpn - ovp_logs:/var/log/openvpn
- ovp_config:/etc/openvpn - ovp_config:/etc/openvpn
- db_data:/app/db
networks: networks:
- ovp-net - ovp-net
environment: environment: