-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (85 loc) · 1.7 KB
/
docker-compose.yml
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
version: "2.3"
services:
st_site:
image: searchtool:latest
build: .
environment:
- DB_HOST=st_db_pb
- REDIS_SERVER=st_redis:6379
- BROKER_SERVER=st_rabbitmq
- ALLOWED_HOSTS=localhost
ports:
- "8080:8000"
depends_on:
- "st_db_pb"
- "st_redis"
links:
- "st_db_pb:st_db_pb_localhost"
- "st_redis:st_redis_localhost"
networks:
- backend
st_celery:
image: searchtool:latest
environment:
- DB_HOST=st_db_pb
- DB_NAME=searchtool
- REDIS_SERVER=st_redis:6379
- BROKER_SERVER=st_rabbitmq
- CELERY_JOB=1
depends_on:
- "st_site"
links:
- "st_db_pb:st_db_pb_localhost"
- "st_redis:st_redis_localhost"
networks:
- backend
st_db_pb:
image: edoburu/pgbouncer
environment:
- DB_USER=barron
- DB_PASSWORD=gre3499
- DB_HOST=st_db
- DB_NAME=searchtool
ports:
- "6432:5432"
depends_on:
- "st_db"
networks:
- backend
st_db:
image: postgres:11.3
environment:
- POSTGRES_DB=searchtool
- POSTGRES_USER=barron
- POSTGRES_PASSWORD=gre3499
ports:
- "5434:5432"
healthcheck:
test: ["CMD-SHELL", "until pg_isready -U searchtool"]
interval: 5s
timeout: 5s
retries: 5
networks:
- backend
st_redis:
image: redis:alpine
depends_on:
- "st_db_pb"
- "st_rabbitmq"
networks:
- backend
st_rabbitmq:
image: rabbitmq
healthcheck:
timeout: 5s
interval: 5s
retries: 3
test:
- "CMD"
- "rabbitmqctl"
- "status"
networks:
- backend
networks:
backend:
driver: bridge