-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (67 loc) · 2.32 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
version: '3.8'
# Container will create database and execute scripts.
# On re-starts it will contain data(and not execute scripts) but on re-builds it will not.
services:
postgres:
image: postgres:14-alpine
container_name: metis-sandbox-postgres
environment:
- POSTGRES_DB=sandbox_local
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
ports:
- '5432:5432'
volumes:
- ./src/main/resources/database/schema.sql:/docker-entrypoint-initdb.d/schema.sql
- ./src/main/resources/database/schema_problem_patterns.sql:/docker-entrypoint-initdb.d/schema_problem_patterns.sql
- ./src/main/resources/database/schema_lockrepository.sql:/docker-entrypoint-initdb.d/schema_lockrepository.sql
- ./src/main/resources/database/schema_validation.sql:/docker-entrypoint-initdb.d/schema_validation.sql
rabbitmq:
image: rabbitmq:3.9.12-management
container_name: metis-sandbox-rabbitmq
environment:
- RABBIT_DEFAULT_VHOST=/
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
ports:
- '5672:5672'
- '15672:15672'
mongo:
image: mongo:4.2.9
container_name: metis-sandbox-mongo
environment:
MONGO_INITDB_DATABASE: metis-sandbox
MONGO_INITDB_ROOT_USERNAME: guest
MONGO_INITDB_ROOT_PASSWORD: guest
ports:
- '27017:27017'
metis-sandbox-local:
image: europeana/metis-sandbox:develop
container_name: metis-sandbox-local
build:
context: ./
dockerfile: Dockerfile
ports:
- '8080:8080'
environment:
RABBITMQ_HOST: metis-sandbox-rabbitmq
MONGO_HOSTS: metis-sandbox-mongo
POSTGRES_HOST: metis-sandbox-postgres
JDK_JAVA_OPTIONS: -Xms500m -Xmx500m
memswap_limit: -1
deploy:
resources:
limits:
cpus: '2'
memory: 1500M
reservations:
cpus: '2'
memory: 1500M
volumes:
- /data/metis-configuration/k8s/common-components/custom-truststore-jks/custom-truststore.jks:/data/certificates/custom-truststore.jks
- /data/metis-configuration/metis-sandbox/metis-sandbox-rest/k8s/overlays/local/components/properties/application.yml:/application.yml
- /data/metis-configuration/k8s/common-components/log4j2-xml/log4j2.xml:/data/logging/log4j2.xml
depends_on:
- rabbitmq
- mongo
- postgres