feat(docker): implement step 13 all-in-one runtime defaults and port 80

This commit is contained in:
2026-03-26 19:23:38 -03:00
parent 3895ef864a
commit 860d5f24bd
4 changed files with 7 additions and 3 deletions

View File

@@ -53,6 +53,6 @@ COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 6969
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]

View File

@@ -19,5 +19,10 @@ fi
# ── Ensure supervisor log directory exists ────────────────────────────────────
mkdir -p /var/log/supervisor
# ── Defaults for all-in-one local PostgreSQL ─────────────────────────────────
export SPRING_DATASOURCE_URL=${SPRING_DATASOURCE_URL:-jdbc:postgresql://localhost:5432/condado}
export SPRING_DATASOURCE_USERNAME=${SPRING_DATASOURCE_USERNAME:-condado}
export SPRING_DATASOURCE_PASSWORD=${SPRING_DATASOURCE_PASSWORD:-condado}
# ── Start all services via supervisord ───────────────────────────────────────
exec /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf

View File

@@ -13,7 +13,6 @@ stderr_logfile=/var/log/supervisor/postgres.err.log
[program:backend]
command=java -jar /app/app.jar
environment=SPRING_DATASOURCE_URL="jdbc:postgresql://localhost:5432/condado",SPRING_DATASOURCE_USERNAME="condado",SPRING_DATASOURCE_PASSWORD="condado"
autostart=true
autorestart=true
startsecs=15

View File

@@ -16,7 +16,7 @@ http {
text/xml application/xml application/xml+rss text/javascript;
server {
listen 6969;
listen 80;
server_name _;
root /usr/share/nginx/html;