Skip to content
This repository was archived by the owner on Nov 17, 2024. It is now read-only.

Commit 8ad4b40

Browse files
committed
added mariadb example
1 parent ec0ea1a commit 8ad4b40

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Docker is great for trying the project out or for active development.
1111
I do not recommend using the docker configuration in this repository for production deployments.
1212

1313
* [CockroachDB](docker/cockroachdb/)
14+
* [MariaDB](docker/mariadb/)
1415
* [MySQL](docker/mysql/)
1516
* [PostgreSQL](docker/postgres/)
1617
* [SQLite](docker/sqlite/)

docker/mariadb/config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
accounts:
2+
- github:
3+
strategy: HTTP
4+
organizations:
5+
- depscloud

docker/mariadb/docker-compose.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: "3.8"
2+
3+
services:
4+
mariadb:
5+
restart: always
6+
image: mariadb:10
7+
hostname: mariadb
8+
environment:
9+
MYSQL_ALLOW_EMPTY_PASSWORD: 1
10+
MYSQL_USER: user
11+
MYSQL_PASSWORD: password
12+
MYSQL_DATABASE: depscloud
13+
ports:
14+
- 3306:3306
15+
16+
tracker:
17+
restart: always
18+
image: depscloud/tracker:${TRACKER_VERSION:-latest}
19+
hostname: tracker
20+
depends_on:
21+
- mariadb
22+
command:
23+
- --storage-driver=mysql
24+
- --storage-address=user:password@tcp(mariadb:3306)/depscloud
25+
26+
extractor:
27+
restart: always
28+
image: depscloud/extractor:${EXTRACTOR_VERSION:-latest}
29+
hostname: extractor
30+
31+
indexer:
32+
restart: on-failure
33+
image: depscloud/indexer:${INDEXER_VERSION:-latest}
34+
hostname: indexer
35+
depends_on:
36+
- extractor
37+
- tracker
38+
volumes:
39+
- ./config.yaml:/etc/indexer/config.yaml
40+
command:
41+
- --config=/etc/indexer/config.yaml
42+
- --workers=1
43+
44+
gateway:
45+
restart: always
46+
image: depscloud/gateway:${GATEWAY_VERSION:-latest}
47+
hostname: gateway
48+
depends_on:
49+
- extractor
50+
- tracker
51+
ports:
52+
- 8080:8080

0 commit comments

Comments
 (0)