-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
89 lines (83 loc) · 2.26 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
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
84
85
86
87
88
89
networks:
cli_net:
services:
registry:
container_name: cli_registry
restart: always
image: registry:2
ports:
- 5001:5000
server-index:
networks: [ cli_net ]
depends_on: [ mongo_rs_initiate, minio ]
image: 772819027869.dkr.ecr.eu-central-1.amazonaws.com/merkely:latest
platform: linux/amd64
command: /app/src/documentdb/wait_till_ready_or_raise.py
container_name: cli_kosli_server-index
read_only: true
env_file: [ "./mongo/mongo.env" ]
environment:
KOSLI_HOSTNAME: localhost
TEST_MODE: cli
stop_signal: SIGINT
tmpfs:
- /tmp
server:
networks: [ cli_net ]
depends_on:
mongo_rs_initiate:
condition: service_started
minio:
condition: service_started
server-index:
condition: service_completed_successfully
image: 772819027869.dkr.ecr.eu-central-1.amazonaws.com/merkely:latest
platform: linux/amd64
env_file: [ "./mongo/mongo.env" ]
environment:
KOSLI_HOSTNAME: localhost
TEST_MODE: cli
EVIDENCE_BUCKET_ENDPOINT_URL: http://minio:9000
EVIDENCE_BUCKET_NAME: cli-tests-evidence
AWS_ACCESS_KEY_ID: ROOTUSER
AWS_SECRET_ACCESS_KEY: ROOTUSER
container_name: cli_kosli_server
ports: ["8001:8001"]
volumes:
- ./server-scripts:/app/test:ro
tmpfs:
- /tmp
mongo_rs_initiate:
networks: [ cli_net ]
image: kosli-mongo-rs
build:
context: ./mongo
container_name: cli_mongo_rs_initiate
init: true
depends_on: [ mongo-cli-1 ]
env_file: [ "./mongo/mongo.env" ]
command: "/mongo/rs_initiate.sh"
mongo-cli-1:
networks: [ cli_net ]
hostname: mongo1
image: kosli-mongo-rs
build:
context: ./mongo
container_name: mongo-cli-1
init: true
stop_signal: SIGINT
ports: ["27018:27017"]
env_file: [ "./mongo/mongo.env" ]
tmpfs: [ /tmp, /data/db ]
minio:
networks: [ cli_net ]
build:
context: ./minio
image: kosli/minio
container_name: minio_cli
ports: ["9010:9000", "9099:9090"]
environment:
MINIO_ROOT_USER: ROOTUSER
MINIO_ROOT_PASSWORD: ROOTUSER
entrypoint: ["/bin/sh", "-c"]
command: ["mc mb --with-lock /data/cli-tests-evidence && minio server /data --console-address ':9090'"]