-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (102 loc) · 2.54 KB
/
docker-compose.yml
File metadata and controls
108 lines (102 loc) · 2.54 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: costwatch
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- '8123:8123'
- '9000:9000'
environment:
- CLICKHOUSE_PASSWORD=password
healthcheck:
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:8123/ping >/dev/null 2>&1 || exit 1']
interval: 30s
start_interval: 5s
start_period: 30s
timeout: 5s
retries: 3
seed:
build:
context: .
dockerfile: docker/go.Dockerfile
working_dir: /app
command: sh -c "go run ./cmd/admin/admin.go seed-clickhouse"
environment:
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PASSWORD=password
depends_on:
clickhouse:
condition: service_healthy
api:
build:
context: .
dockerfile: docker/go.Dockerfile
working_dir: /app
command: sh -c "go run ./apps/api/cmd/main.go"
environment:
- APP_ENV=development
- PORT=3010
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PASSWORD=password
- AWS_PROFILE=${AWS_PROFILE}
- AWS_REGION=${AWS_REGION}
env_file:
- .env
volumes:
- ${HOME}/.aws:/root/.aws:ro
ports:
- '3010:3010'
healthcheck:
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:3010/v1/healthcheck >/dev/null 2>&1 || exit 1']
interval: 10s
start_interval: 2s
start_period: 30s
timeout: 3s
retries: 5
depends_on:
clickhouse:
condition: service_healthy
seed:
condition: service_completed_successfully
worker:
build:
context: .
dockerfile: docker/go.Dockerfile
working_dir: /app
command: sh -c "go run ./apps/worker/cmd/main.go"
environment:
- APP_ENV=development
- PORT=3020
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PASSWORD=password
- AWS_PROFILE=${AWS_PROFILE}
- AWS_REGION=${AWS_REGION}
env_file:
- .env
volumes:
- ${HOME}/.aws:/root/.aws
ports:
- '3020:3020'
depends_on:
clickhouse:
condition: service_healthy
seed:
condition: service_completed_successfully
dashboard:
build:
context: .
dockerfile: docker/node.Dockerfile
working_dir: /app/apps/dashboard
command: sh -c "yarn vite"
ports:
- '3000:3000'
- '24678:24678'
healthcheck:
test: ['CMD-SHELL', 'wget -qO- http://127.0.0.1:3000/ >/dev/null 2>&1 || exit 1']
interval: 10s
start_interval: 2s
start_period: 60s
timeout: 3s
retries: 5
depends_on:
api:
condition: service_healthy