-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.tests.yml
69 lines (69 loc) · 2 KB
/
docker-compose.tests.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
version: '3.7'
services:
outbox-api:
build:
context: .
dockerfile: Dockerfile
ports:
- 8085:8085
env_file:
- .env-tests
networks:
dac-network:
ipv4_address: 172.21.0.9
postgres:
image: postgres
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
dac-network:
ipv4_address: 172.21.0.13
keycloak:
image: quay.io/keycloak/keycloak:15.0.2
environment:
DB_VENDOR: ${DB_VENDOR}
DB_ADDR: ${DB_ADDR}
DB_DATABASE: ${DB_DATABASE}
DB_USER: ${DB_USER}
DB_SCHEMA: ${DB_SCHEMA}
DB_PASSWORD: ${DB_PASSWORD}
KEYCLOAK_USER: ${KEYCLOAK_USER}
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
volumes:
- "./ipc-test-data/keycloak/realms:/opt/jboss/keycloak/imports"
command:
- '-b 0.0.0.0 -Dkeycloak.profile.feature.upload_scripts=enabled -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/opt/jboss/keycloak/imports/realm-export.json -Dkeycloak.migration.strategy=IGNORE_EXISTING'
ports:
- 8080:8080
depends_on:
- postgres
networks:
dac-network:
ipv4_address: 172.21.0.12
mongo:
image : mongo:4.4
hostname: mongo
restart: on-failure
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS}
MONGO_REPLICA_SET_NAME: ${MONGO_REPLICASET}
volumes:
- "./keyfile:/opt/keyfile/keyfile"
ports:
- 27017:27017
healthcheck:
test: test $$(echo "rs.initiate().ok || rs.status().ok" | mongo -u $${MONGO_INITDB_ROOT_USERNAME} -p $${MONGO_INITDB_ROOT_PASSWORD} --quiet) -eq 1
interval: 10s
start_period: 30s
command: "--bind_ip_all --keyFile /opt/keyfile/keyfile --replSet rs0"
networks:
dac-network:
ipv4_address: 172.21.0.10
networks:
dac-network:
ipam:
config:
- subnet: 172.21.0.0/24