-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
78 lines (72 loc) · 1.61 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
services:
api:
image: maven:3.9.6-amazoncorretto-17
command: mvn spring-boot:run
working_dir: /api
container_name: api
volumes:
- ./api:/api
env_file:
- .env
ports:
- ${API_PORT}:8080
depends_on:
rabbitmq:
condition: service_started
db:
condition: service_started
redis:
condition: service_started
localstack:
condition: service_started
networks:
- network
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- ${RABBITMQ_PORT}:5672
- ${RABBITMQ_GUI_PORT}:15672
networks:
- network
db:
image: postgres:13.1-alpine
container_name: db
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./api/tmp/database:/var/lib/postgresql/data
ports:
- ${POSTGRES_PORT}:5432
networks:
- network
redis:
image: redis/redis-stack
container_name: redis
volumes:
- ./api/tmp/redis:/var/lib/redis/data
ports:
- ${REDIS_PORT}:6379
- ${REDIS_GUI_PORT}:8001
networks:
- network
localstack:
image: localstack/localstack
container_name: localstack
user: root
environment:
- SERVICES=s3,ses
- DEFAULT_REGION=us-east-1
ports:
- ${LOCALSTACK_PORT}:4566
env_file:
- .env
volumes:
- ./infrastructure/init_localstack_infra.sh:/etc/localstack/init/ready.d/init_localstack_infra.sh
networks:
- network
networks:
network:
driver: bridge