fix missing path to db
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user