forked from Informatievlaanderen/ldes2service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.4 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
version: '3'
services:
mongo:
image: 'bitnami/mongodb'
restart: 'always'
environment:
MONGODB_USERNAME: ${MONGO_USER}
MONGODB_PASSWORD: ${MONGO_PASSWORD}
MONGODB_DATABASE: ${MONGO_DB}
ports:
- 27017:27017
postgres:
image: 'bitnami/postgresql'
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- 5432:5432
redis:
image: redis:6
command: redis-server --appendonly yes
ports:
- 6379:6379
replicator:
build: .
image: ghcr.io/osoc21/ldes-replicator
environment:
URLS: https://apidg.gent.be/opendata/adlib2eventstream/v1/dmg/objecten
STATE_CONFIG: '{"id":"replicator_0",
"host":"redis",
"port":6379}'
POLL_INTERVAL: '5000'
CONNECTORS: '[0,1]'
CONNECTOR_0_TYPE: '@ldes/ldes-postgres-connector'
CONNECTOR_0_CONFIG: '{"amountOfVersions":0,
"tableName":"ldes",
"username":"${POSTGRES_USER}",
"password":"${POSTGRES_PASSWORD}",
"database":"${POSTGRES_DB}",
"hostname":"postgres",
"port":5432}'
CONNECTOR_1_TYPE: '@ldes/ldes-mongodb-connector'
CONNECTOR_1_CONFIG: '{"amountOfVersions":0,
"username":"${MONGO_USER}",
"password":"${MONGO_PASSWORD}",
"database":"${MONGO_DB}",
"hostname":"mongo",
"port":27017}'