-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.testing.yml
More file actions
189 lines (182 loc) · 5.86 KB
/
docker-compose.testing.yml
File metadata and controls
189 lines (182 loc) · 5.86 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
services:
# app
catalystexplorer_test.com:
image: catalystexplorer
container_name: catalystexplorer_test.com
tty: true
env_file:
- ./application/.env.testing
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '8088:8000'
- '5172:${VITE_PORT:-5173}'
environment:
APP_ENV: testing
WWWUSER: '${WWWUSER:-1000}'
CONTAINER_ROLE: "app"
CADDY_SERVER_SERVER_NAME: "localhost:80"
CADDY_SERVER_TLS_CONFIG: ""
FRANKENPHP_PORT: "80"
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
IGNITION_LOCAL_SITES_PATH: '${PWD}'
SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=frankenphp --host=0.0.0.0 --admin-port=2019 --port=80"
XDG_CONFIG_HOME: /var/www/caddy
XDG_DATA_HOME: /var/www/caddy
OCTANE_WATCH: 'false'
POSTGRESQL_WEB_DB_HOST: catalystexplorer_test.db
POSTGRESQL_WEB_DB: catalystexplorer
POSTGRESQL_WEB_USER: explorerdbuser
POSTGRESQL_WEB_PASSWORD: ASLJ023470AlserLFH
REDIS_HOST: catalystexplorer_test.redis
volumes:
- ./application:/var/www:cached
networks:
- catalystexplorer-net_test
depends_on:
- catalystexplorer_test.db
- catalystexplorer_test-search
- catalystexplorer_test.redis
catalystexplorer_test.queue:
image: catalystexplorer
container_name: catalystexplorer_test.queue
depends_on:
- catalystexplorer_test.db
- catalystexplorer_test.redis
env_file:
- ./application/.env.testing
environment:
APP_ENV: testing
APP_SETUP: "true"
PHP_OPCACHE_ENABLE: 0
PHP_OPCACHE_VALIDATE_TIMESTAMPS: 1
TELESCOPE_ENABLED: "false"
PHP_MEMORY_LIMIT: 8192M
CONTAINER_ROLE: "queue"
DB_CONNECTION: pgsql
POSTGRESQL_DB_SYNC_DB_HOST: postgres_dbsync
POSTGRESQL_DB_SYNC_PASSWORD: v8hlDV0yMAHHlIurYupj
MEILISEARCH_KEY: v8hlDV0yMAHHlIurYupj
MEILISEARCH_HOST: "http://catalystexplorer_test-search:7700"
POSTGRESQL_DB_SYNC_DB: cexplorer
POSTGRESQL_DB_SYNC_USER: postgres
XDG_CONFIG_HOME: /var/www
POSTGRESQL_WEB_DB_HOST: catalystexplorer_test.db
POSTGRESQL_WEB_DB: catalystexplorer
POSTGRESQL_WEB_USER: explorerdbuser
POSTGRESQL_WEB_PASSWORD: ASLJ023470AlserLFH
MEDIA_DISK: public
TELESCOPE_USE_DARK_THEME: "true"
REDIS_HOST: catalystexplorer_test.redis
build:
context: ./docker
args: {}
dockerfile: ./Dockerfile.dev
volumes:
- type: volume
source: test_node-ipc
target: /ipc
volume:
nocopy: true
- ./application:/var/www:cached
networks:
- catalystexplorer-net_test
# database
catalystexplorer_test.db:
image: pgvector/pgvector:pg17
container_name: catalystexplorer_test.db
ports:
- '5439:5432'
env_file:
- ./application/.env.testing
environment:
- POSTGRES_LOGGING=true
- POSTGRES_DB=catalystexplorer
- POSTGRES_PASSWORD=ASLJ023470AlserLFH
- POSTGRES_USER=explorerdbuser
- POSTGRES_POSTGRES_PASSWORD=alj2340aaALJAF2341408AUUZLJK
volumes:
- 'test_catalystexplorer-db:/var/lib/postgresql/data'
networks:
- catalystexplorer-net_test
healthcheck:
test:
- CMD
- pg_isready
- '-q'
- '-d'
- 'catalystexplorer'
- '-U'
- 'explorerdbuser'
retries: 3
timeout: 5s
# one-shot init to enable extensions in explorerweb
catalystexplorer_test.db-init:
image: postgres:18.1-trixie
container_name: catalystexplorer_test.db-init
depends_on:
- catalystexplorer_test.db
networks:
- catalystexplorer-net_test
entrypoint: ["/bin/sh","-c"]
command: >
"until pg_isready -h catalystexplorer_test.db -U explorerdbuser -d catalystexplorer; do echo waiting for test db; sleep 1; done;
PGPASSWORD=ASLJ023470AlserLFH psql -h catalystexplorer_test.db -U explorerdbuser -d catalystexplorer -v ON_ERROR_STOP=1 -c 'CREATE EXTENSION IF NOT EXISTS vector';
echo 'pgvector enabled (test)';"
restart: "no"
# meilisearch
catalystexplorer_test-search:
image: getmeili/meilisearch:v1.35.0
container_name: catalystexplorer_test-search
env_file:
- ./application/.env.testing
ports:
- '7712:7700'
environment:
MEILI_NO_ANALYTICS: '${MEILISEARCH_NO_ANALYTICS:-false}'
MEILISEARCH_KEY: v8hlDV0yMAHHlIurYupj
volumes:
- 'test_catalystexplorer-search:/meili_data'
networks:
- catalystexplorer-net_test
healthcheck:
test:
- CMD
- wget
- '--no-verbose'
- '--spider'
- 'http://127.0.0.1:7700/health'
retries: 3
timeout: 5s
#redis
catalystexplorer_test.redis:
image: redis:8.0-M02-alpine3.20
container_name: catalystexplorer_test.redis
env_file:
- ./application/.env.testing
ports:
- '6377:6379'
volumes:
- 'test_catalystexplorer-redis:/data'
networks:
- catalystexplorer-net_test
healthcheck:
test:
- CMD
- redis-cli
- ping
retries: 3
timeout: 5s
networks:
catalystexplorer-net_test:
driver: bridge
volumes:
test_catalystexplorer-db:
driver: local
test_catalystexplorer-search:
driver: local
test_catalystexplorer-redis:
driver: local
test_node-ipc: