-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml.tmpl
51 lines (48 loc) · 1.43 KB
/
docker-compose.yml.tmpl
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
version: '3.8'
services:
db:
container_name: db
image: mysql:8.0.33
restart: unless-stopped
environment:
MYSQL_DATABASE: ecosystem
MYSQL_USER: collector
MYSQL_PASSWORD: examplepasswd
MYSQL_ROOT_PASSWORD: examplerootpasswd
ports:
# This port is set so you can use tools like mysql workbench to visualize changes to the tables in this db as you iterate.
- 3306:3306
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
volumes:
- db_data:/var/lib/mysql
ecosystem-activity-collector:
container_name: collector
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
healthcheck:
test: wget --no-verbose -q --output-document - http://localhost:8080/healthz || exit 1
interval: 30s
timeout: 15s
retries: 3
environment:
ECOSYSTEM_ACTIVITY_GITHUB_TOKEN: changeme
ECOSYSTEM_ACTIVITY_INTERVAL: 1
ECOSYSTEM_ACTIVITY_SORTER_SCHEDULE: "@every 5m"
ECOSYSTEM_ACTIVITY_CONFIG: /config.yaml
ECOSYSTEM_ACTIVITY_LOG_LEVEL: debug
ECOSYSTEM_ACTIVITY_MYSQL_HOST: db
ECOSYSTEM_ACTIVITY_MYSQL_DATABASE: ecosystem
ECOSYSTEM_ACTIVITY_MYSQL_USER: collector
ECOSYSTEM_ACTIVITY_MYSQL_PASSWORD: examplepasswd
volumes:
- ./testconfig.yaml:/config.yaml
depends_on:
db:
condition: service_healthy
volumes:
db_data: