-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (38 loc) · 895 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (38 loc) · 895 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
34
35
36
37
38
services:
streamlit:
build: .
ports: ["8501:8501"]
env_file: .env.example
api:
build:
context: .
dockerfile: apps/api/Dockerfile
ports: ["8000:8000"]
env_file: .env.example
depends_on: [postgres, redis]
web:
build:
context: .
dockerfile: apps/web/Dockerfile
ports: ["3000:3000"]
environment:
NEXT_PUBLIC_API_URL: http://localhost:8000
depends_on: [api]
postgres:
image: pgvector/pgvector:pg16
environment:
POSTGRES_USER: ats
POSTGRES_PASSWORD: ats
POSTGRES_DB: ats
ports: ["5432:5432"]
volumes: ["postgres_data:/var/lib/postgresql/data"]
redis:
image: redis:7-alpine
ports: ["6379:6379"]
nginx:
image: nginx:1.27-alpine
ports: ["8080:80"]
volumes: ["./infra/nginx/nginx.conf:/etc/nginx/nginx.conf:ro"]
depends_on: [api, web]
volumes:
postgres_data: