-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
96 lines (95 loc) · 1.99 KB
/
docker-compose.yaml
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
90
91
92
93
94
95
96
version: "3.9"
services:
webserver:
image: "nginx:latest"
ports:
- "80:80"
volumes:
- "./webServer/default.conf:/etc/nginx/conf.d/default.conf"
depends_on:
- product_read
- product_write
mongo:
image: mongo:latest
ports:
- "27017:27017"
postgres:
image: postgres:12.4
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: product_db
ports:
- '5432:5432'
redis:
image: redis:latest
ports:
- "6379:6379"
product_write:
environment:
SQLALCHEMY_DATABASE_URI: "postgresql://root:root@postgres:5432/product_db"
REDIS_URI: "redis://redis:6379"
RPC_HOST: "tax"
image: "python:3.8.1"
ports:
- "3000:5000"
volumes:
- .:/app
working_dir: /app/product
command: ./bootstrap.sh
depends_on:
- postgres
- redis
- tax
product_read:
environment:
SQLALCHEMY_DATABASE_URI: "postgresql://root:root@postgres:5432/product_db"
REDIS_URI: "redis://redis:6379"
RPC_HOST: "tax"
image: "python:3.8.1"
ports:
- "3001:5000"
volumes:
- .:/app
working_dir: /app/product
command: ./bootstrap.sh
depends_on:
- postgres
- redis
- tax
comments_write_async:
environment:
REDIS_URI: "redis://redis:6379"
image: "python:3.8.1"
ports:
- "3002:5000"
volumes:
- ./comments:/app
working_dir: /app
command: ./bootstrap.sh
depends_on:
- redis
- mongo
comments_worker:
environment:
REDIS_URI: "redis://redis:6379"
MONGO_URI: "mongodb://mongo:27017"
image: "python:3.8.1"
volumes:
- ./comments:/app
working_dir: /app
command: ./bootstrap_worker.sh
depends_on:
- redis
- mongo
tax:
image: "python:3.8.1"
ports:
- "50051:50051"
volumes:
- ./tax:/app
working_dir: /app
command: ./bootstrap.sh
depends_on:
- postgres
- redis