-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ci-playwright.yml
More file actions
236 lines (223 loc) · 6.82 KB
/
Copy pathdocker-compose.ci-playwright.yml
File metadata and controls
236 lines (223 loc) · 6.82 KB
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
name: aoe-ci
services:
aoe-web-frontend:
image: nginx:latest@sha256:5a88c9c45479443d7be2eadc894b4ed0a9801bae03d97a5760ae13b5c2005942
container_name: aoe-web-frontend
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./aoe-web-frontend/docker/server.conf:/etc/nginx/conf.d/default.conf:ro
- ./aoe-web-frontend/dist:/usr/share/nginx/html:ro
depends_on:
aoe-web-backend:
condition: service_healthy
ports:
- 8282:80
- 33344:8080
networks:
- default
test-runner:
build:
context: .
dockerfile: Dockerfile.playwright-test-runner
args:
PLAYWRIGHT_VERSION: ${PLAYWRIGHT_VERSION}
networks:
- default
volumes:
- ./screenshots:/screenshots
- ./playwright-results:/playwright-results
environment:
- CI=true
- GITHUB_SHA
- GITHUB_SERVER_URL
- GITHUB_REPOSITORY
- GITHUB_RUN_ID
depends_on:
nginx:
condition: service_started
aoe-streaming-app:
hostname: aoe-streaming-app
build:
context: aoe-streaming-app
dockerfile: ./docker/Dockerfile
args:
NODE_VERSION: ${NODE_VERSION}
image: ${AOE_STREAMING_APP_TAG:-aoe-streaming-app:latest}
container_name: aoe-streaming-app
restart: unless-stopped
environment:
- NODE_ENV=development
- PORT=3001
ports:
- 3001:3001
env_file:
- path: ./aoe-streaming-app/.env.ci
depends_on:
localstack:
condition: service_started
aoe-web-backend:
build:
context: aoe-web-backend
dockerfile: ./docker/Dockerfile.local
args:
NODE_VERSION: ${NODE_VERSION}
image: ${AOE_WEB_BACKEND_TAG:-aoe-web-backend:latest}
container_name: aoe-web-backend
healthcheck:
test: [ "CMD", "wget", "--spider", "-q", "http://aoe-web-backend:3000/health" ]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
- ./docker/dev/web/thumbnail/:/app/thumbnail:rw
- ./docker/dev/web/uploads:/app/uploads:rw
- ./docker/dev/web/webdata:/webdata:rw
- ./docker/dev/web/webdata/htmlfolder:/webdata/htmlfolder:rw
- ./aoe-web-backend/src:/app/src:rw
depends_on:
aoe-oidc-server:
condition: service_healthy
aoe-postgres:
condition: service_started
redis:
condition: service_started
opensearch:
condition: service_healthy
environment:
- NODE_ENV=development
- ENV=demo
ports:
- 3000:3000
env_file:
- ./aoe-web-backend/.env.ci
redis:
image: redis:6.2.24-alpine@sha256:b362b5dff9d14d961dc3352db4776aba6a8c53ca2661d7c74ad2c121f82cdaea
container_name: redis
privileged: true
command: ["redis-server", "--requirepass", "dev_password", "--user", "devuser", "on", ">devuser_password", "~*", "+@all", "--user", "default", "off", "nopass", "nocommands"]
restart: unless-stopped
environment:
REDIS_REPLICATION_MODE: master
volumes:
- ./docker/dev/redis_data:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli -u redis://devuser:devuser_password@localhost:6379 ping | grep PONG"]
interval: 30s
timeout: 10s
retries: 5
start_period: 10s
ports:
- 6379:6379
aoe-postgres:
image: postgres:15-alpine@sha256:f7d23353e1b15400d22ebe31189f4d314b87a4c129cc400c8c2d8d4ca127bf81
container_name: aoe-postgres
ports:
- 5432:5432
environment:
POSTGRES_USER: aoeuser
POSTGRES_PASSWORD: aoepassword
POSTGRES_DB: aoe
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aoeuser -d aoe"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./docker/init-scripts/aoe-init.sql:/docker-entrypoint-initdb.d/1-init.sql
- ./docker/init-scripts/aoe-user.sql:/docker-entrypoint-initdb.d/2-init.sql
- ./docker/dev/postgres_data:/var/lib/postgresql/data
opensearch:
image: opensearchproject/opensearch:3.8.0@sha256:fafe3fc3587088674669235575aa166228c48bdb940294a8cdbbc1da75236a40
container_name: opensearch
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node
- discovery.type=single-node
- bootstrap.memory_lock=true
- DISABLE_SECURITY_PLUGIN=true
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=Asfsadfsad!@2
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9200/_cluster/health" ]
interval: 10s
timeout: 5s
retries: 5
ports:
- 9200:9200
- 9600:9600
localstack:
image: localstack/localstack:4.14.0@sha256:3ebc37595918b8accb852f8048fef2aff047d465167edd655528065b07bc364a
container_name: localstack
networks:
default:
aliases:
- aoe.s3.localhost.localstack.cloud
- aoepdf.s3.localhost.localstack.cloud
- aoethumbnail.s3.localhost.localstack.cloud
environment:
- SERVICES=s3
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- DEBUG="1"
- HOSTNAME_EXTERNAL=localhost
ports:
- 4566:4566
volumes:
- ./docker/init-scripts/aws-shutdown.sh:/etc/localstack/init/shutdown.d/aws-shutdown.sh
- ./docker/init-scripts/init-aws.sh:/etc/localstack/init/ready.d/init-aws.sh
- ./docker/dev/localstack/S3:/host-directory
aoe-oidc-server:
hostname: aoe-oidc-server
container_name: aoe-oidc-server
image: quay.io/keycloak/keycloak:26.6.3@sha256:9b0330756022422149aa6502eb2def8cd47c6e1b000c7c65cdb13e7c0133e992
ports:
- '127.0.0.1:8080:8080'
command: [ "start-dev", "--import-realm", "--health-enabled=true" ]
environment:
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
restart: always
volumes:
- ./docker/keycloak/import:/opt/keycloak/data/import
healthcheck:
test: [ "CMD-SHELL", "exec 3<>/dev/tcp/localhost/9000" ]
interval: 10s
timeout: 5s
retries: 12
start_period: 30s
nginx:
image: nginx:latest@sha256:5a88c9c45479443d7be2eadc894b4ed0a9801bae03d97a5760ae13b5c2005942
container_name: nginx
hostname: nginx
ports:
- 443:443
- 80:80
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/nginx-selfsigned.crt:/etc/nginx/certs/nginx-selfsigned.crt:ro
- ./docker/nginx/nginx-selfsigned.key:/etc/nginx/certs/nginx-selfsigned.key:ro
networks:
default:
aliases:
- demo.aoe.fi
depends_on:
aoe-web-backend:
condition: service_healthy
aoe-web-frontend:
condition: service_healthy
aoe-streaming-app:
condition: service_started
networks:
default:
name: aoe_ci
volumes:
postgres_data: