fix missing path to db
This commit is contained in:
@@ -9,8 +9,12 @@ WORKDIR /app
|
||||
COPY 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 . .
|
||||
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
# Expose API port
|
||||
|
||||
@@ -8,7 +8,8 @@ if [ ! -c /dev/net/tun ]; then
|
||||
fi
|
||||
|
||||
# Enable IP forwarding
|
||||
sysctl -w net.ipv4.ip_forward=1
|
||||
sysctl -w net.ipv4.ip_forward=1 || true
|
||||
|
||||
|
||||
# NAT MASQUERADE
|
||||
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
|
||||
|
||||
@@ -67,6 +67,8 @@ services:
|
||||
volumes:
|
||||
- ovp_logs:/var/log/openvpn
|
||||
- ovp_config:/etc/openvpn
|
||||
- db_data:/app/db
|
||||
|
||||
networks:
|
||||
- ovp-net
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user