Refactor to break out scheduler

This commit is contained in:
2025-10-23 20:23:03 -04:00
parent 84312d0b50
commit a9dc5ffdc1
66 changed files with 5796 additions and 705 deletions

View File

@@ -14,7 +14,7 @@ services:
container_name: aviation-nginx
build:
context: .
dockerfile: Dockerfile
dockerfile: nginx/Dockerfile
env_file: *env
environment:
SSL_CERT_PATH: /etc/nginx/ssl/localhost.crt
@@ -84,7 +84,7 @@ services:
container_name: aviation-api
build:
context: .
dockerfile: Dockerfile
dockerfile: crates/api/Dockerfile
env_file: *env
environment:
SSL_CA_PATH: /ssl/ca.pem
@@ -109,6 +109,22 @@ services:
- api
<<: *default_restart
scheduler:
image: gitea.bensherriff.com/bsherriff/aviation-scheduler:latest
container_name: aviation-scheduler
build:
context: .
dockerfile: crates/scheduler/Dockerfile
env_file: *env
environment:
POSTGRES_HOST: aviation-postgres
POSTGRES_PORT: 5432
depends_on:
- postgres
profiles:
- api
<<: *default_restart
mailpit:
image: axllent/mailpit
container_name: mailpit