-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
69 lines (66 loc) · 1.67 KB
/
docker-compose.yaml
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
services:
postgres_db:
container_name: postgres_db
image: postgres:14-bookworm
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: "modron"
POSTGRES_PASSWORD: "docker-test-password"
POSTGRES_DB: "modron"
PGDATA: "/tmp/"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U modron"]
interval: 1s
timeout: 2s
retries: 5
tmpfs:
- /tmp
networks:
- modron
modron_fake:
container_name: modron_fake
build:
context: .
dockerfile: src/Dockerfile
environment:
COLLECTOR: "FAKE"
DB_BATCH_SIZE: "1"
DB_MAX_CONNECTIONS: "1"
IS_E2E_GRPC_TEST: "true"
LISTEN_ADDR: "0.0.0.0"
NOTIFICATION_SERVICE: "modron_test:8082"
ORG_ID: "111111111111"
ORG_SUFFIX: "@example.com"
PORT: 8081
RUN_AUTOMATED_SCANS: "false"
SQL_BACKEND_DRIVER: "postgres"
SQL_CONNECT_STRING: "host=postgres_db port=5432 user=modron password=docker-test-password database=modron sslmode=disable"
STORAGE: "SQL"
TAG_CUSTOMER_DATA: 111111111111/customer_data
TAG_EMPLOYEE_DATA: 111111111111/employee_data
TAG_ENVIRONMENT: 111111111111/environment
ports:
- "8081:8081"
networks:
- modron
depends_on:
postgres_db:
condition: service_healthy
modron_test:
container_name: e2e_test
build:
context: .
dockerfile: src/Dockerfile.e2e
environment:
BACKEND_ADDRESS: "modron:8080"
FAKE_BACKEND_ADDRESS: "modron_fake:8081"
FAKE_NOTIFICATION_SERVICE_PORT: "8082"
networks:
- modron
depends_on:
- modron_fake
networks:
modron:
driver: bridge