-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
services:
postgres-offer-db:
image: postgres:15-alpine
container_name: offer-management-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: omom
POSTGRES_DB: offer_management
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./database-init:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres || exit 1"]
interval: 10s
timeout: 5s
retries: 5
networks:
- offer-network
restart: unless-stopped
backend-apis:
build:
context: ./backend-apis
dockerfile: Dockerfile.prod
container_name: offer-management-api
environment:
DATABASE_URL: postgresql://postgres:omom@postgres-offer-db:5432/offer_management
SECRET_KEY: your_secret_key_here
ALGORITHM: HS256
ACCESS_TOKEN_EXPIRE_MINUTES: 30
AZURE_ENDPOINT: ${AZURE_ENDPOINT:-https://bh-in-openai-synapsesynergy.openai.azure.com/}
AZURE_API_KEY: ${AZURE_API_KEY:-1234567890}
AZURE_API_VERSION: ${AZURE_API_VERSION:-2024-12-01-preview}
AZURE_DEPLOYMENT: ${AZURE_DEPLOYMENT:-gpt-4o-3}
ports:
- "8000:8000"
depends_on:
postgres-offer-db:
condition: service_healthy
networks:
- offer-network
restart: unless-stopped
frontend-app:
build:
context: ./frontend-app
dockerfile: Dockerfile.prod
container_name: frontend-app
ports:
- "3000:3000"
environment:
# Direct connection to the backend API
- PORT=3000
restart: unless-stopped
depends_on:
- backend-apis
networks:
- offer-network
volumes:
postgres-data:
networks:
offer-network:
driver: bridge