-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
95 lines (87 loc) · 1.93 KB
/
docker-compose.yaml
File metadata and controls
95 lines (87 loc) · 1.93 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
95
services:
postgres:
build:
context: ./postgres
dockerfile: Dockerfile
restart: unless-stopped
environment:
POSTGRES_USER: erik
POSTGRES_PASSWORD: erik
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgresql/data
networks:
- local
rabbit:
image: rabbitmq:3-management
restart: unless-stopped
ports:
- "15672:15672"
- "5672:5672"
volumes:
- rabbit:/var/lib/rabbit/data
networks:
- local
nats:
image: nats
restart: unless-stopped
ports:
- "4222:4222"
- "6222:6222"
- "8222:8222"
volumes:
- nats:/var/lib/nats/data
networks:
- local
redis:
image: redis/redis-stack:latest
restart: unless-stopped
ports:
- "6379:6379"
- "8001:8001"
volumes:
- redis:/var/lib/redis/data
networks:
- local
mongo:
image: mongo
restart: unless-stopped
ports:
- 27017:27017
volumes:
- mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: erik
MONGO_INITDB_ROOT_PASSWORD: erik
networks:
- local
localstack:
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
image: localstack/localstack
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
environment:
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
- DEBUG=${DEBUG:-1}
volumes:
- "./volume/localstack:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- local
volumes:
db:
driver: local
rabbit:
driver: local
mongo:
driver: local
nats:
driver: local
redis:
driver: local
networks:
local:
name: 'local'
driver: bridge