-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
68 lines (63 loc) · 1.43 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
version: '3.8'
services:
gateway:
container_name: gateway
image: gateway
build:
context: .
dockerfile: ./docker/Dockerfile.gateway.dev
command: start
depends_on:
- redis
- postgres
environment:
- GATEWAY_APP_HOST=0.0.0.0
- GATEWAY_APP_PORT=8080
- GATEWAY_REDIS_HOST=redis
- GATEWAY_REDIS_PORT=6379
- GATEWAY_POSTGRES_URL=postgres://mstudio@postgres:5432/mstudio?sslmode=disable
ports:
- 8080:8080
postgres:
image: postgres:13
container_name: postgres
environment:
- POSTGRES_DB=mstudio
- POSTGRES_USER=mstudio
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U mstudio" ]
interval: 30s
timeout: 30s
retries: 3
redis:
image: redis:7.2-alpine
container_name: redis
restart: always
ports:
- 6379:6379
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 3s
retries: 30
clickhouse:
image: clickhouse/clickhouse-server:24.1.5
container_name: clickhouse
volumes:
- clickhouse:/var/lib/clickhouse
ports:
- 9000:9000
- 8123:8123
restart: always
volumes:
redis: {}
postgres: {}
clickhouse: {}