-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
86 lines (81 loc) · 2.12 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
redis:
image: redis:7.0.7
restart: unless-stopped
ports:
- '6379:6379'
environment:
- REDIS_PASSWORD=my-password
- REDIS_PORT=6379
networks:
- cdpuploader
redisinsight:
image: redislabs/redisinsight:latest
ports:
- '5540:5540'
volumes:
- redisinsight:/data
depends_on:
- redis
localstack:
image: localstack/localstack:3.0.2
ports:
- '127.0.0.1:4566:4566' # LocalStack Gateway
- '127.0.0.1:4510-4559:4510-4559' # external services port range
env_file:
- 'compose/aws.env'
environment:
DEBUG: ${DEBUG:-1}
LS_LOG: WARN # Localstack DEBUG Level
SERVICES: s3,sqs,sns,firehose
LOCALSTACK_HOST: 127.0.0.1
volumes:
- '${TMPDIR:-/tmp}/localstack:/var/lib/localstack'
- ./compose/start-localstack.sh:/etc/localstack/init/ready.d/start-localstack.sh
healthcheck:
test: ['CMD', 'curl', 'localhost:4566']
interval: 5s
start_period: 5s
retries: 3
networks:
cdpuploader:
ipv4_address: 10.0.2.20
cdp-uploader:
image: defradigital/cdp-uploader:${CDP_UPLOADER_VERSION:-latest}
ports:
- '127.0.0.1:7337:7337'
links:
- 'localstack:localstack'
- 'redis:redis'
depends_on:
localstack:
condition: service_healthy
env_file:
- 'compose/aws.env'
environment:
VIRTUAL_HOST: ~^uploader\..*\.sslip\.io
VIRTUAL_PATH: /
VIRTUAL_PORT: 7337
PORT: 7337
NODE_ENV: development
REDIS_HOST: redis
LOCALSTACK_ENDPOINT: http://localhost.localstack.cloud:4566
S3_ENDPOINT: http://localhost.localstack.cloud:4566
SQS_ENDPOINT: http://localhost.localstack.cloud:4566
USE_SINGLE_INSTANCE_CACHE: true
MOCK_VIRUS_SCAN_ENABLED: true
MOCK_VIRUS_RESULT_DELAY: 3
dns:
# Set the DNS server to be the LocalStack container
- 10.0.2.20
networks:
- cdpuploader
volumes:
redisinsight:
networks:
cdpuploader:
driver: bridge
ipam:
config:
# Specify the subnet range for IP address allocation
- subnet: 10.0.2.0/24