-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
94 lines (88 loc) · 2.11 KB
/
docker-compose.test.yml
File metadata and controls
94 lines (88 loc) · 2.11 KB
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
90
91
92
93
94
version: '3.8'
services:
postgres-test:
image: postgres:15-alpine
container_name: scada-test-db
environment:
POSTGRES_DB: scada_topology_test
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
command:
- "postgres"
- "-c"
- "shared_buffers=256MB"
- "-c"
- "max_connections=200"
ports:
- "5433:5432"
volumes:
- postgres_test_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U test_user -d scada_topology_test"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
networks:
- scada_test_network
localstack:
image: localstack/localstack:latest
container_name: scada-test-localstack
environment:
SERVICES: s3,lambda,sqs,iot,kinesis
DEBUG: 0
AWS_DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: testing
AWS_SECRET_ACCESS_KEY: testing
DOCKER_HOST: unix:///var/run/docker.sock
ports:
- "4566:4566"
- "4571:4571"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
healthcheck:
test: ["CMD", "awslocal", "s3", "ls"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
networks:
- scada_test_network
depends_on:
- postgres-test
redis-test:
image: redis:7-alpine
container_name: scada-test-redis
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
networks:
- scada_test_network
mosquitto-test:
image: eclipse-mosquitto:2-alpine
container_name: scada-test-mosquitto
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
healthcheck:
test: ["CMD", "mosquitto_sub", "-h", "localhost", "-t", "$SYS/#", "-C", "1"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
networks:
- scada_test_network
profiles:
- with-mqtt
volumes:
postgres_test_data:
networks:
scada_test_network:
driver: bridge