mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-14 16:29:40 -05:00
Update Dockerfile.combined
This commit is contained in:
+10
-4
@@ -43,10 +43,8 @@ RUN echo "local all all trust" > /etc/postgresql/main/pg_hba.conf && \
|
||||
echo "host all all 127.0.0.1/32 trust" >> /etc/postgresql/main/pg_hba.conf && \
|
||||
echo "host all all ::1/128 trust" >> /etc/postgresql/main/pg_hba.conf
|
||||
|
||||
# Create postgres user and set up directories
|
||||
RUN groupadd -r postgres && \
|
||||
useradd -r -g postgres -s /bin/bash postgres && \
|
||||
mkdir -p /var/lib/postgresql/data && \
|
||||
# Set up PostgreSQL data directory
|
||||
RUN mkdir -p /var/lib/postgresql/data && \
|
||||
chown postgres:postgres /var/lib/postgresql/data && \
|
||||
chmod 700 /var/lib/postgresql/data
|
||||
|
||||
@@ -85,6 +83,10 @@ user=postgres\n\
|
||||
autostart=true\n\
|
||||
autorestart=true\n\
|
||||
priority=100\n\
|
||||
stdout_logfile=/dev/stdout\n\
|
||||
stdout_logfile_maxbytes=0\n\
|
||||
stderr_logfile=/dev/stderr\n\
|
||||
stderr_logfile_maxbytes=0\n\
|
||||
\n\
|
||||
[program:flask-app]\n\
|
||||
command=/app/start.sh\n\
|
||||
@@ -93,6 +95,10 @@ autostart=true\n\
|
||||
autorestart=true\n\
|
||||
priority=200\n\
|
||||
depends_on=postgresql\n\
|
||||
stdout_logfile=/dev/stdout\n\
|
||||
stdout_logfile_maxbytes=0\n\
|
||||
stderr_logfile=/dev/stderr\n\
|
||||
stderr_logfile_maxbytes=0\n\
|
||||
' > /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
# Create startup script for Flask app
|
||||
|
||||
Reference in New Issue
Block a user