-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.ci.yml
49 lines (46 loc) · 1.25 KB
/
docker-compose.ci.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
services:
importer-db:
container_name: sis-importer-db
image: registry-toska.ext.ocp-prod-0.k8s.it.helsinki.fi/sis-importer-db
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d sis-importer-db" ]
interval: 5s
timeout: 5s
retries: 5
importer-db-api:
build:
args:
NODE_ENV: "test"
context: importer-db-api
container_name: sis-importer-db-api
tty: true
depends_on:
importer-db:
condition: service_healthy
environment:
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_PORT: 5432
DB_HOST: importer-db
DB_DATABASE: sis-importer-db
PORT: 3001
ports:
- 3001:3001
importer-mankeli:
build:
context: importer-mankeli
container_name: sis-importer-mankeli
depends_on:
- importer-db
- importer-redis
environment:
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_PORT: 5432
DB_HOST: importer-db
DB_DATABASE: sis-importer-db
REDIS_URI: redis://importer-redis:6379
importer-redis:
command: [ "redis-server", "--appendonly", "yes", "--port", "6379" ]
image: redis:6-alpine
container_name: sis-importer-redis