-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
52 lines (48 loc) · 1.33 KB
/
docker-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
services:
postgres:
image: postgres:17.0
# see https://www.postgresql.org/docs/current/non-durability.html
command: '-c full_page_writes=off -c fsync=off -c synchronous_commit=off'
ports:
- '5432:5432'
environment:
- POSTGRES_USER=serviceuser
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=service_db
volumes:
- ./scripts/db/init-dbs.sh:/docker-entrypoint-initdb.d/init-dbs.sh
redis:
image: redis:6.2.14-alpine
command: redis-server --requirepass sOmE_sEcUrE_pAsS
ports:
- ${DOCKER_REDIS_PORT:-6379}:6379
volumes:
- redis_data:/redis/data:cached
rabbitmq:
image: rabbitmq:3.12.13-management
ports:
- ${DOCKER_RABBITMQ_CLIENT_PORT:-5672}:5672
- ${DOCKER_RABBITMQ_MANAGEMENT_PORT:-15672}:15672
volumes:
- rabbit_data:/var/lib/rabbitmq
localstack:
image: localstack/localstack:3.8.1
hostname: localstack
ports:
- '4566:4566'
- 4510-4559:4510-4559
environment:
SERVICES: sns,sqs
DEBUG: 0
DATA_DIR: ${DATA_DIR-}
DOCKER_HOST: unix:///var/run/docker.sock
LOCALSTACK_HOST: localstack
volumes:
- ${TMPDIR:-/tmp}/localstack:/var/log/localstack
- /var/run/docker.sock:/var/run/docker.sock
restart: on-failure
volumes:
redis_data:
driver: local
rabbit_data:
driver: local