-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
170 lines (155 loc) · 3.67 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
version: '3.8'
services:
markdown-linter:
build:
context: docker/local/markdown-linter
volumes:
- ./:/app:delegated
working_dir: /app
yaml-linter:
build:
context: docker/local/yaml-linter
volumes:
- ./:/app:delegated
working_dir: /app
commit-linter:
build:
context: docker/local/commit-linter
volumes:
- ./:/app:delegated
working_dir: /app
api-webserver:
build:
context: docker/local/api-webserver
volumes:
- ./api:/app:delegated
working_dir: /app
networks:
default:
aliases:
- local.api.seaofbottles.aperturedevs.com
depends_on:
api-relational-database:
condition: service_healthy
api-event-store:
condition: service_healthy
broker:
condition: service_healthy
mailer:
condition: service_healthy
api-cli:
build:
context: docker/local/api-cli
volumes:
- ./api:/app:delegated
working_dir: /app
depends_on:
api-relational-database:
condition: service_healthy
api-event-store:
condition: service_healthy
broker:
condition: service_healthy
mailer:
condition: service_healthy
api-worker:
build:
context: docker/local/api-cli
volumes:
- ./api:/app:delegated
working_dir: /app
depends_on:
api-relational-database:
condition: service_healthy
api-event-store:
condition: service_healthy
broker:
condition: service_healthy
mailer:
condition: service_healthy
restart: on-failure
command: bin/console messenger:consume message_broker -vv
api-event-store:
image: postgres:14
volumes:
- api-event-store-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: sob
POSTGRES_PASSWORD: password
healthcheck:
test: pg_isready -U sob
interval: 5s
timeout: 5s
retries: 20
api-relational-database:
image: postgres:14
volumes:
- api-relational-database-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: sob
POSTGRES_PASSWORD: password
healthcheck:
test: pg_isready -U sob
interval: 5s
timeout: 5s
retries: 20
frontend-webserver:
image: node:lts
expose:
- 4200
command: npx ng serve --host 0.0.0.0 --disable-host-check --poll=5000
volumes:
- ./frontend:/app:delegated
working_dir: /app
depends_on:
- api-webserver
healthcheck:
test: wget -O - http://localhost:4200 || exit 1
interval: 5s
timeout: 5s
retries: 20
frontend-cli:
build:
context: docker/local/frontend-cli
volumes:
- ./frontend:/app:delegated
working_dir: /app
depends_on:
- api-webserver
broker:
image: rabbitmq:3-management
environment:
RABBITMQ_DEFAULT_USER: "sob"
RABBITMQ_DEFAULT_PASS: "password"
hostname: broker
volumes:
- broker-data:/var/lib/rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 5s
timeout: 5s
retries: 20
mailer:
image: maildev/maildev
restart: on-failure
command: bin/maildev --web 80 --smtp 25 --hide-extensions STARTTLS
healthcheck:
test: wget -O - http://localhost:80/healthz || exit 1
interval: 5s
timeout: 5s
retries: 20
cypress:
image: cypress/included:10.6.0
volumes:
- ./frontend:/app:delegated
working_dir: /app
depends_on:
frontend-webserver:
condition: service_healthy
networks:
default:
external: false
volumes:
api-relational-database-data: ~
api-event-store-data: ~
broker-data: ~