-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
96 lines (88 loc) · 1.92 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
86
87
88
89
90
91
92
93
94
95
96
version: "3.8"
services:
app_build:
image: app
container_name: app_build
build:
context: .
dockerfile: Dockerfile
api:
image: app
container_name: api
environment:
ROCKET_ADDRESS: 0.0.0.0
ROCKET_PORT: 8000
BINARY: api
REDIS_URL: "redis://default:@redis:6379"
POSTGRES_URL: "postgres://username:password@postgres/api"
ports:
- "8000:8000"
restart: always
depends_on:
- app_build
- redis
- postgres
setup:
image: app
container_name: setup
environment:
BINARY: setup
REDIS_URL: "redis://default:@redis:6379"
POSTGRES_URL: "postgres://username:password@postgres/api"
depends_on:
- app_build
- redis
- postgres
daemon:
image: app
container_name: daemon
environment:
BINARY: daemon
REDIS_URL: "redis://default:@redis:6379"
POSTGRES_URL: "postgres://username:password@postgres/api"
depends_on:
- app_build
- setup
- redis
- postgres
parser:
image: app
container_name: parser
environment:
BINARY: parser
POSTGRES_URL: "postgres://username:password@postgres/api"
depends_on:
- app_build
- setup
- postgres
redis:
image: redis:7.0-alpine
container_name: redis
restart: always
ports:
- 6379:6379
postgres:
image: postgres:latest
container_name: postgres
ports:
- 5432:5432
restart: always
#volumes:
# - postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: api
clickhouse:
image: clickhouse/clickhouse-server
container_name: clickhouse
restart: always
ports:
- 8123:8123 # HTTP interface
- 9000:9000 # Native interface
- 9009:9009 # TCP interface
volumes:
- clickhouse:/var/lib/clickhouse
volumes:
postgres:
clickhouse: