-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
86 lines (80 loc) · 1.77 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
79
80
81
82
83
84
85
86
services:
postgres:
image: postgres:16.4
container_name: postgres
environment:
POSTGRES_DB: csa_db
POSTGRES_USER: root
POSTGRES_PASSWORD: root
ports:
- "5432:5432"
networks:
- my-network
healthcheck:
test: [ "CMD", "pg_isready", "-d", "csa_db" ]
interval: 10s
timeout: 5s
retries: 5
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
networks:
- my-network
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "ping" ]
interval: 10s
timeout: 5s
retries: 5
maildev:
image: maildev/maildev
restart: always
environment:
- MAILDEV_WEB_PORT=1080
- MAILDEV_SMTP_PORT=1025
ports:
- "1080:1080"
- "1025:1025"
networks:
- my-network
csa-api:
container_name: csa-api
build:
context: .
dockerfile: csa-api/Dockerfile # Point to csa-core Dockerfile
ports:
- "8080:8080"
environment:
POSTGRES_HOST: postgres
POSTGRES_USER: root
POSTGRES_PASSWORD: root
RABBITMQ_HOST: rabbitmq
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
networks:
- my-network
csa-mail-sender:
container_name: csa-mail-sender
build:
context: .
dockerfile: csa-mail-sender/Dockerfile # Point to csa-mail-sender Dockerfile
environment:
MAIL_HOST: maildev
MAIL_PORT: 1025
MAIL_USERNAME: root
MAIL_PASSWORD: root
RABBITMQ_HOST: rabbitmq
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
networks:
- my-network
networks:
my-network: