Compare commits

..

6 Commits

3 changed files with 13 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
services:
nginx:
ports:
- "8091:80"

View File

@@ -4,14 +4,14 @@ x-backend-env: &backend-env
DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/taptrack_hub
REDIS_URL: redis://redis:6379/0
SECRET_KEY: changeme-in-production-use-openssl-rand-hex-32
ENVIRONMENT: development
ENVIRONMENT: production
SEMAPHORE_API_KEY: ""
SMTP_HOST: ""
SMTP_PORT: "587"
SMTP_USER: ""
SMTP_PASSWORD: ""
SMTP_FROM: "noreply@taptrack.io"
HUB_BASE_URL: "http://localhost:8090"
HUB_BASE_URL: "http://taptrack-hub.juankibin.space"
PDF_DIR: "/app/data/invoices"
services:
@@ -42,7 +42,6 @@ services:
environment:
<<: *backend-env
volumes:
- ./backend:/app
- backend_data:/app/data
depends_on:
db:
@@ -50,14 +49,11 @@ services:
redis:
condition: service_started
# One-shot seed service — runs seed.py then exits
seed:
build: ./backend
command: python seed.py
environment:
<<: *backend-env
volumes:
- ./backend:/app
depends_on:
db:
condition: service_healthy
@@ -70,7 +66,6 @@ services:
environment:
<<: *backend-env
volumes:
- ./backend:/app
- backend_data:/app/data
depends_on:
- db
@@ -83,7 +78,6 @@ services:
environment:
<<: *backend-env
volumes:
- ./backend:/app
- backend_data:/app/data
depends_on:
- db
@@ -96,12 +90,10 @@ services:
- backend
nginx:
image: nginx:alpine
build: ./nginx
restart: unless-stopped
ports:
- "8090:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- "8091:80"
depends_on:
- backend
- frontend
@@ -110,3 +102,4 @@ volumes:
db_data:
redis_data:
backend_data:

2
nginx/Dockerfile Normal file
View File

@@ -0,0 +1,2 @@
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf