-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
100 lines (87 loc) · 1.75 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
97
98
99
100
version: '3'
services:
fits:
image: artourkin/fits-web:latest
container_name: fits
env_file: .env
networks:
- web
restart: unless-stopped
ports:
- 8081:8080
rest:
container_name: rest
image: artourkin/fitsinn-rest:latest
env_file: .env
networks:
- web
restart: unless-stopped
environment:
- SPRING_PROFILES_ACTIVE=clickhouse
deploy:
replicas: 1
ports:
- 8092:8080
depends_on:
- fits
- db-docker
web:
image: artourkin/fitsinn-web:latest
container_name: web
env_file: .env
networks:
- web
restart: unless-stopped
ports:
- 8080:3000
db-docker:
image: yandex/clickhouse-server
container_name: db-docker
networks:
- web
ports:
- 8123:8123
- 9000:9000
- 9004:9004
db-docker-init:
image: yandex/clickhouse-server
container_name: db-docker-init
volumes:
- ./config/clickhouse:/var/clickhouse
depends_on:
- db-docker
networks:
- web
entrypoint: [ '/bin/sh', '-c' ]
command: |
"
while ! clickhouse-client --host db-docker -q \"SHOW databases;\"; do
echo waiting for clickhouse up
sleep 1
done
clickhouse-client --host db-docker --queries-file /var/clickhouse/initdb.sql
tail -f /dev/null
"
adminer:
image: adminer
container_name: adminer
env_file: .env
restart: unless-stopped
networks:
- web
ports:
- 8090:8080
nginx:
image: nginx
container_name: nginx
env_file: .env
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8082:80
networks:
- web
depends_on:
- rest
networks:
web: