Compare commits
6 Commits
7d8cc3ca22
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| cae1d20366 | |||
| d30a70bcdb | |||
| 5e5998845b | |||
| 8f385e71cb | |||
| cbf4a5fb92 | |||
| 0beca4e375 |
6
docker-compose.override.yml
Normal file
6
docker-compose.override.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
services:
|
||||||
|
nginx:
|
||||||
|
ports:
|
||||||
|
- "8091:80"
|
||||||
|
|
||||||
@@ -4,14 +4,14 @@ x-backend-env: &backend-env
|
|||||||
DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/taptrack_hub
|
DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/taptrack_hub
|
||||||
REDIS_URL: redis://redis:6379/0
|
REDIS_URL: redis://redis:6379/0
|
||||||
SECRET_KEY: changeme-in-production-use-openssl-rand-hex-32
|
SECRET_KEY: changeme-in-production-use-openssl-rand-hex-32
|
||||||
ENVIRONMENT: development
|
ENVIRONMENT: production
|
||||||
SEMAPHORE_API_KEY: ""
|
SEMAPHORE_API_KEY: ""
|
||||||
SMTP_HOST: ""
|
SMTP_HOST: ""
|
||||||
SMTP_PORT: "587"
|
SMTP_PORT: "587"
|
||||||
SMTP_USER: ""
|
SMTP_USER: ""
|
||||||
SMTP_PASSWORD: ""
|
SMTP_PASSWORD: ""
|
||||||
SMTP_FROM: "noreply@taptrack.io"
|
SMTP_FROM: "noreply@taptrack.io"
|
||||||
HUB_BASE_URL: "http://localhost:8090"
|
HUB_BASE_URL: "http://taptrack-hub.juankibin.space"
|
||||||
PDF_DIR: "/app/data/invoices"
|
PDF_DIR: "/app/data/invoices"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
@@ -42,7 +42,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
<<: *backend-env
|
<<: *backend-env
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend:/app
|
|
||||||
- backend_data:/app/data
|
- backend_data:/app/data
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
@@ -50,14 +49,11 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
|
|
||||||
# One-shot seed service — runs seed.py then exits
|
|
||||||
seed:
|
seed:
|
||||||
build: ./backend
|
build: ./backend
|
||||||
command: python seed.py
|
command: python seed.py
|
||||||
environment:
|
environment:
|
||||||
<<: *backend-env
|
<<: *backend-env
|
||||||
volumes:
|
|
||||||
- ./backend:/app
|
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -70,7 +66,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
<<: *backend-env
|
<<: *backend-env
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend:/app
|
|
||||||
- backend_data:/app/data
|
- backend_data:/app/data
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@@ -83,7 +78,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
<<: *backend-env
|
<<: *backend-env
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend:/app
|
|
||||||
- backend_data:/app/data
|
- backend_data:/app/data
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@@ -96,12 +90,10 @@ services:
|
|||||||
- backend
|
- backend
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine
|
build: ./nginx
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8090:80"
|
- "8091:80"
|
||||||
volumes:
|
|
||||||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- backend
|
||||||
- frontend
|
- frontend
|
||||||
@@ -110,3 +102,4 @@ volumes:
|
|||||||
db_data:
|
db_data:
|
||||||
redis_data:
|
redis_data:
|
||||||
backend_data:
|
backend_data:
|
||||||
|
|
||||||
|
|||||||
2
nginx/Dockerfile
Normal file
2
nginx/Dockerfile
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
FROM nginx:alpine
|
||||||
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
Reference in New Issue
Block a user