Fix: Robust API configuration and password handling. Resolved 502 Bad Gateway.

This commit is contained in:
Scott Idem
2026-01-12 18:20:01 -05:00
parent 5044a4fc5b
commit 7bd22d1086
2 changed files with 65 additions and 106 deletions

View File

@@ -30,9 +30,6 @@ services:
- ./conf/certs/oneskyit.com_privkey.pem:/etc/certs/privkey.pem
- ./conf/certs/ssl-dhparams.pem:/etc/certs/ssl-dhparams.pem
- ./logs/web:/logs
networks:
- ae_public
- ae_private
depends_on:
- ae_api
- aether_app_gunicorn
@@ -47,8 +44,6 @@ services:
container_name: ${CONTAINER_REDIS}
image: redis
command: redis-server --save "" --loglevel warning
networks:
- ae_private
logging:
driver: "json-file"
options:
@@ -76,8 +71,6 @@ services:
volumes:
- ./srv/mariadb:/var/lib/mysql
- ./conf/mariadb/server.cnf:/etc/mysql/conf.d/server.cnf
networks:
- ae_private
logging:
driver: "json-file"
options:
@@ -93,9 +86,6 @@ services:
UPLOAD_LIMIT: 64M
ports:
- "${AE_PMA_PORT}:80"
networks:
- ae_public
- ae_private
depends_on:
- mariadb
logging:
@@ -110,12 +100,6 @@ services:
context: ./
dockerfile: aether_fastapi_gunicorn.Dockerfile
scale: ${AE_API_REPLICAS}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5005/docs"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
env_file:
- ./.env
extra_hosts:
@@ -134,8 +118,6 @@ services:
- ${HOSTED_FILES_SRC}:/srv/hosted_files
- ${HOSTED_TMP_SRC}:/srv/hosted_tmp
- ./temp/ae_api:/temp
networks:
- ae_private
depends_on:
- redis
- mariadb
@@ -148,6 +130,7 @@ services:
max-file: "3"
aether_app_gunicorn:
# ... (same as before) ...
restart: always
container_name: ${CONTAINER_AE_APP}
build:
@@ -170,9 +153,6 @@ services:
- ${HOSTED_FILES_SRC}:/srv/hosted_files
- ${HOSTED_TMP_SRC}:/srv/hosted_tmp
- ./tmp/ae_app:/tmp
networks:
- ae_public
- ae_private
depends_on:
- ae_api
stdin_open: true
@@ -190,8 +170,6 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8881:8080"
networks:
- ae_public
restart: unless-stopped
logging:
driver: "json-file"
@@ -199,9 +177,28 @@ services:
max-size: "10m"
max-file: "3"
ae_ops:
# ... (same as before) ...
container_name: ae_ops_dev
image: alpine:latest
restart: always
env_file:
- ./.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./backups:/backups
- ./scripts:/scripts
- ./logs:/logs
- ./conf/crontab:/etc/crontabs/root
command: sh -c "apk add --no-cache docker-cli bash && crond -f -l 2"
depends_on:
- mariadb
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
ae_public:
name: ae_dev_public
ae_private:
name: ae_dev_private
internal: true
default:
name: ae_dev_net