-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
42 lines (38 loc) · 863 Bytes
/
docker-compose.prod.yml
File metadata and controls
42 lines (38 loc) · 863 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
39
40
41
42
name: balancer-prod
version: "3.8"
services:
db:
image: pgvector/pgvector:pg15
volumes:
- postgres_data_prod:/var/lib/postgresql/data/
- ./db/init-vector-extension.sql:/docker-entrypoint-initdb.d/init-vector-extension.sql
environment:
- POSTGRES_USER=balancer
- POSTGRES_PASSWORD=balancer
- POSTGRES_DB=balancer_dev
networks:
- app_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U balancer -d balancer_dev"]
interval: 5s
timeout: 5s
retries: 5
app:
image: balancer-app
build:
context: .
dockerfile: Dockerfile.prod
ports:
- "8000:8000"
env_file:
- ./config/env/prod.env
depends_on:
db:
condition: service_healthy
networks:
- app_net
volumes:
postgres_data_prod:
networks:
app_net:
driver: bridge