-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-build.yml
85 lines (84 loc) · 1.72 KB
/
docker-compose-build.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
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
version: '3'
services:
default-db:
image: postgres:latest
container_name: tt-postgres-container
ports:
- "5432:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: task-tracker
POSTGRES_PASSWORD: task-tracker
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
- ./data/init-scripts:/docker-entrypoint-initdb.d
networks:
task-tracker:
message-broker:
image: rabbitmq:3-management
container_name: tt-rabbitmq-container
ports:
- "5672:5672" # AMQP
- "15672:15672" # RabbitMQ Management
environment:
RABBITMQ_DEFAULT_USER: rabbitmq
RABBITMQ_DEFAULT_PASS: rabbitmq
networks:
task-tracker:
memory-db:
image: redis:latest
container_name: tt-redis-container
ports:
- "6379:6379"
networks:
task-tracker:
api:
build:
context: api
container_name: tt-api-container
ports:
- "8080:8080"
depends_on:
- default-db
- message-broker
- memory-db
env_file:
- .env
networks:
task-tracker:
scheduler:
build:
context: scheduler
container_name: tt-scheduler-container
depends_on:
- default-db
- message-broker
env_file:
- .env
networks:
task-tracker:
email-sender:
build:
context: email-sender
container_name: tt-email-sender-container
depends_on:
- message-broker
env_file:
- .env
networks:
task-tracker:
client:
build:
context: client
container_name: tt-client-container
ports:
- "3000:3000"
depends_on:
- api
env_file:
- .env
networks:
task-tracker:
networks:
task-tracker:
driver: bridge