-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (62 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
64 lines (62 loc) · 1.51 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
services:
rmq:
image: rabbitmq:3.13-management
ports:
- 5672:5672
- 15672:15672
volumes:
- ./.volumes/rabbitmq/data/:/var/lib/rabbitmq/
- ./.volumes/rabbitmq/log/:/var/log/rabbitmq/
- ./docker/rabbitmq/rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro
- ./docker/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json:ro
networks:
- app_network
mongodb:
image: mongo:7.0
hostname: mongodb
command: [ "--replSet", "rs0", "--bind_ip_all" ]
ports:
- 27017:27017
volumes:
- ./.volumes/mongodb:/data/db
networks:
- app_network
healthcheck:
test: [ "CMD", "mongosh", "--eval", "db.adminCommand('ping')" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
mongo-init:
image: mongo:7.0
restart: "no"
depends_on:
mongodb:
condition: service_healthy
volumes:
- ./docker/mongodb/init-mongodb.sh:/init-mongodb.sh
entrypoint: [ "/bin/bash", "/init-mongodb.sh" ]
networks:
- app_network
localstack:
image: localstack/localstack:latest
ports:
- "4566:4566"
environment:
DEBUG: ${DEBUG:-0}
SERVICES: s3
DATA_DIR: /tmp/localstack/data
volumes:
- ./.volumes/localstack:/var/lib/localstack
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- app_network
redis:
image: redis
command: redis-server
ports:
- 6379:6379
networks:
- app_network
networks:
app_network: