-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (31 loc) · 802 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (31 loc) · 802 Bytes
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
services:
api:
build:
context: ./api
dockerfile: Dockerfile
container_name: chatops-api
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://user:password@db:5432/chatops
- SECRET_KEY=your-secret-key-change-in-production
- 'CORS_ORIGINS=["http://localhost:5173","http://localhost:3000"]'
depends_on:
- db
volumes:
- ./api/.env:/app/.env # Mount .env file if it exists
restart: unless-stopped
db:
image: postgres:16-alpine
container_name: chatops-db
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=chatops
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
postgres_data: