forked from trackit/trackit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (54 loc) · 1.44 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
version: '3'
services:
sql:
image: msolution/trackit2-sql
environment:
- MYSQL_USER=${TRACKIT_SQL_USER:-trackit}
- MYSQL_PASSWORD=${TRACKIT_SQL_PASSWORD:-trackitpassword}
- MYSQL_DATABASE=${TRACKIT_SQL_DATABASE:-trackit}
- MYSQL_RANDOM_ROOT_PASSWORD=yes
networks:
- app
ports:
- '127.0.0.1:3306:3306'
es:
image: docker.elastic.co/elasticsearch/elasticsearch:5.5.3
environment:
- "ES_JAVA_OPTS=-Xms3g -Xmx3g"
networks:
- app
ports:
- '127.0.0.1:9200:9200'
redis:
image: redis:latest
command: ["redis-server", "--requirepass changeme"]
networks:
- app
ports:
- '127.0.0.1:6379:6379'
api:
image: msolution/trackit2-api
links:
- sql
- redis
command:
- -sql-address=${TRACKIT_SQL_USER:-trackit}:${TRACKIT_SQL_PASSWORD:-trackitpassword}@tcp(sql:3306)/${TRACKIT_SQL_DATABASE:-trackit}?parseTime=true
- -es-address=${TRACKIT_ES_ADDRESS:-http://es:9200}
- -redis-address=${TRACKIT_REDIS_ADDRESS:-redis:6379}
- -http-address=[::]:80
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
ports:
- 8080:80
networks:
- app
networks:
app:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.19.84.0/24