-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
98 lines (90 loc) · 2.24 KB
/
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
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
95
96
97
98
version: '3.4'
services:
localstack:
image: localstack/localstack:3.0.2
ports:
- '4566:4566' # LocalStack Gateway
- '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:
- cdp-tenant
redis:
image: redis:7.2.3-alpine3.18
ports:
- '6379:6379'
restart: always
networks:
- cdp-tenant
mongodb:
image: mongo:6.0.13
networks:
- cdp-tenant
ports:
- '27017:27017'
volumes:
- mongodb-data:/data
restart: always
################################################################################
# your-frontend:
# image: defradigital/your-frontend:${YOUR_FRONTEND_VERSION:-latest}
# ports:
# - '3000:3000'
# links:
# - 'localstack:localstack'
# - 'redis:redis'
# depends_on:
# localstack:
# condition: service_healthy
# redis:
# condition: service_started
# env_file:
# - 'compose/aws.env'
# environment:
# PORT: 3000
# NODE_ENV: development
# REDIS_HOST: redis
# LOCALSTACK_ENDPOINT: http://localstack:4566
# USE_SINGLE_INSTANCE_CACHE: true
# networks:
# - cdp-tenant
your-backend:
build: ./
ports:
- '3555:3555'
links:
- 'localstack:localstack'
- 'mongodb:mongodb'
depends_on:
localstack:
condition: service_healthy
mongodb:
condition: service_started
env_file:
- 'compose/aws.env'
environment:
PORT: 3555
NODE_ENV: development
LOCALSTACK_ENDPOINT: http://localstack:4566
MONGO_URI: mongodb://mongodb:27017/
networks:
- cdp-tenant
################################################################################
volumes:
mongodb-data:
networks:
cdp-tenant:
driver: bridge