-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
100 lines (100 loc) · 2.01 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
97
98
99
100
version: "3.3"
services:
db:
image: mysqldb
build: ./docker/mysqldb
container_name: mysql1
ports:
- "53306:3306"
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: repo
MYSQL_DATABASE: repodb
MYSQL_USER: repo
MYSQL_PASSWORD: repo
redis:
image: tutum/redis
hostname: "redis"
environment:
- REDIS_PASS=**None**
container_name: redis1
ports:
- "6379:6379"
rabbitmq:
image: "bitnami/rabbitmq"
container_name: rabbitmq1
environment:
RABBITMQ_ERL_COOKIE: "ABQOKOFSQALCPCLNLEQG"
RABBITMQ_USERNAME: "admin"
RABBITMQ_PASSWORD: "repormq"
RABBITMQ_VHOST: "/"
RABBITMQ_DISK_FREE_LIMIT: "{mem_relative, 0.1}"
ports:
- "55673:15672"
- "5672:5672"
expose:
- 5672
- 15672
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 1
labels:
NAME: "rabbitmq"
solr:
image: solris:latest
build: ./docker/solris
hostname: "solr"
container_name: solris1
ports:
- "8983:8983"
earkweb:
image: earkweb:latest
build: .
container_name: earkweb1
command: /earkweb/run_earkweb.sh
user: ${USER}:${USER}
ports:
- "8000:8000"
volumes:
- "/d1/sample/repo:/var/data/repo"
links:
- flower
- db
- redis
- rabbitmq
- solr
depends_on:
- redis
- rabbitmq
- db
- celery
celery:
image: earkweb:latest
build: .
container_name: celery1
command: /earkweb/run_celery.sh
user: ${USER}:${USER}
volumes:
- "/d1/sample/repo:/var/data/repo"
restart: on-failure
links:
- redis
- rabbitmq
depends_on:
- redis
- rabbitmq
flower:
image: earkweb:latest
build: .
container_name: flower1
command: /earkweb/run_flower.sh
ports:
- "5555:5555"
links:
- redis
- rabbitmq
depends_on:
- redis
- celery