-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
89 lines (83 loc) · 2.06 KB
/
docker-compose.dev.yml
File metadata and controls
89 lines (83 loc) · 2.06 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
services:
go-service:
build:
context: ./go-service
dockerfile: Dockerfile
container_name: loresmith-go-service
ports:
- "8080:8080"
env_file: .env
depends_on:
- postgres
- python-service
python-service:
build:
context: ./python-service
dockerfile: Dockerfile
container_name: loresmith-python-service
ports:
- "50051:50051"
env_file: .env
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
rabbitmq:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
image: rabbitmq:4-management-alpine
container_name: loresmith-rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
- RABBITMQ_DEFAULT_USER=loresmith
- RABBITMQ_DEFAULT_PASS=loresmith
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: loresmith-redis
ports:
- "6379:6379"
command: redis-server --maxmemory 256mb --maxmemory-policy allkeys-lru
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
postgres:
image: pgvector/pgvector:pg12
container_name: loresmith-postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
restart: unless-stopped
test-postgres:
image: pgvector/pgvector:pg16
container_name: loresmith-test-postgres
ports:
- "5433:5432"
environment:
- POSTGRES_DB=${TEST_POSTGRES_DB}
- POSTGRES_USER=${TEST_POSTGRES_USER}
- POSTGRES_PASSWORD=${TEST_POSTGRES_PASSWORD}
restart: unless-stopped
volumes:
- test_postgres_data:/var/lib/postgresql/data
profiles:
- test
volumes:
postgres_data:
test_postgres_data: