-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose-services.yml
More file actions
83 lines (76 loc) · 2.42 KB
/
Copy pathdocker-compose-services.yml
File metadata and controls
83 lines (76 loc) · 2.42 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
# Docker Compose file for supporting services only (no GridAPPS-D container)
# Use this when running GridAPPS-D locally outside of Docker
#
# Usage:
# ./run.sh -s # Start services only mode
# OR
# docker compose -f docker-compose-services.yml up -d
services:
blazegraph:
image: gridappsd/blazegraph${GRIDAPPSD_TAG}
container_name: blazegraph
ports:
- 8889:8080
ulimits:
nofile:
soft: 65536
hard: 65536
redis:
image: redis:3.2.11-alpine
container_name: redis
ports:
- 6379:6379
volumes:
- ./gridappsd/redis/data:/data
entrypoint: redis-server --appendonly yes
mysql:
image: mysql/mysql-server:5.7
container_name: mysql
ports:
- 3306:3306
healthcheck:
# Use mysqladmin ping without credentials - it returns 0 if server is up
# even if access is denied (which is fine for a health check)
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_PORT: 3306
volumes:
- ./gridappsd/mysql:/var/lib/mysql
- ./dumps/gridappsd_mysql_dump.sql:/docker-entrypoint-initdb.d/schema.sql:ro
proven:
image: gridappsd/proven${GRIDAPPSD_TAG}
container_name: proven
ports:
- 18080:8080
environment:
# PROVEN_SERVICES_PORT - Proven service port [18080]
# PROVEN_SWAGGER_HOST_PORT - Host and port value for Swagger (<host>:<port>)
# PROVEN_USE_IDB - Use InfluxDB to save provenance metrics (true | false) [false]
# PROVEN_IDB_URL - InfluxDB URL [http://localhost:8086]
# PROVEN_IDB_DB - InfluxDB Database [proven]
# PROVEN_IDB_RP - InfluxDB retention policy [autogen]
# PROVEN_IDB_USERNAME - InfluxDb username [root]
# PROVEN_IDB_PASSWORD - InfluxDb password [root]
# PROVEN_T3DIR - directory location of triple store [user_home_directory]
####
- PROVEN_SERVICES_PORT=18080
- PROVEN_SWAGGER_HOST_PORT=localhost:18080
- PROVEN_USE_IDB=true
- PROVEN_IDB_URL=http://influxdb:8086
- PROVEN_IDB_DB=proven
- PROVEN_IDB_RP=autogen
- PROVEN_IDB_USERNAME=root
- PROVEN_IDB_PASSWORD=root
- PROVEN_T3DIR=/proven
influxdb:
image: gridappsd/influxdb${GRIDAPPSD_TAG}
container_name: influxdb
environment:
INFLUXDB_DB: "proven"
ports:
- 8086:8086