-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
198 lines (196 loc) · 5.4 KB
/
compose.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
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
services:
nginx:
image: 'ghcr.io/malusevdevelopment/nginx:dev'
build:
context: .
dockerfile: deploy/nginx/Dockerfile
networks:
- dusan_malusev
laravel.test:
build:
context: .
dockerfile: docker/php/Dockerfile
target: development
args:
WWWGROUP: "${WWWGROUP}"
WWWUSER: "${WWWUSER}"
image: "ghcr.io/malusevdevelopment/website:dev"
command: 'start-container'
develop:
watch:
- action: sync
path: .
target: /var/www/html
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "80:80"
- "443:443"
- "443:443/udp"
- "5173:5173"
- "2019:2019"
environment:
WWWUSER: "${WWWUSER}"
SERVER_NAME: 'dusanmalusev.test'
LARAVEL_SAIL: 1
XDEBUG_MODE: "${SAIL_XDEBUG_MODE:-off}"
XDEBUG_CONFIG: "${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal idekey=PHPSTORM}"
XDG_CONFIG_HOME: /home/sail/config
XDG_DATA_HOME: /home/sail/data
volumes:
- ".:/var/www/html"
- "caddy_data:/data"
- "caddy_config:/config"
networks:
- dusan_malusev
depends_on:
- typesense
- pgsql
- redis
- minio
- mailpit
- soketi
pgsql:
image: "postgres:17-bookworm"
ports:
- "5432:5432"
environment:
PGPASSWORD: "${DB_PASSWORD:-secret}"
POSTGRES_DB: "${DB_DATABASE:-dusan_malusev}"
POSTGRES_USER: "${DB_USERNAME:-dusan_malusev}"
POSTGRES_PASSWORD: "${DB_PASSWORD:-dusan_malusev}"
volumes:
- "dusan_malusev-pgsql:/var/lib/postgresql/data"
- "./docker/pgsql/create-testing-database.sql:/docker-entrypoint-initdb.d/10-create-testing-database.sql"
- "./docker/pgsql/create-umami-database.sql:/docker-entrypoint-initdb.d/10-create-umami-database.sql"
- './docker/pgsql/create-grafana-database.sql:/docker-entrypoint-initdb.d/10-create-grafana-database.sql'
networks:
- dusan_malusev
healthcheck:
test:
- CMD
- pg_isready
- "-q"
- "-d"
- "${DB_DATABASE}"
- "-U"
- "${DB_USERNAME}"
retries: 3
timeout: 5s
redis:
image: 'ghcr.io/malusevdevelopment/valkey:dev'
restart: unless-stopped
build:
context: .
dockerfile: deploy/valkey/Dockerfile
target: development
ports:
- "${FORWARD_REDIS_PORT:-6379}:6379"
networks:
- dusan_malusev
minio:
image: "minio/minio:latest"
ports:
- "${FORWARD_MINIO_CONSOLE_PORT:-8900}:8900"
- "${FORWARD_MINIO_PORT:-9000}:9000"
environment:
MINIO_ROOT_USER: dusan_malusev
MINIO_ROOT_PASSWORD: password
volumes:
- "dusan_malusev-minio:/data/minio"
networks:
- dusan_malusev
command: 'minio server /data/minio --console-address ":8900"'
healthcheck:
test:
- CMD
- curl
- "-f"
- "http://localhost:9000/minio/health/live"
retries: 3
timeout: 5s
mailpit:
image: "axllent/mailpit:latest"
ports:
- "${FORWARD_MAILPIT_DASHBOARD_PORT:-8026}:8025"
networks:
- dusan_malusev
soketi:
image: "quay.io/soketi/soketi:1.6-16-debian"
depends_on:
- pgsql
- redis
environment:
SOKETI_DEBUG: "${SOKETI_DEBUG:-1}"
SOKETI_METRICS_SERVER_PORT: "9601"
SOKETI_APP_MANAGER_DRIVER: postgres
SOKETI_APP_MANAGER_CACHE_ENABLED: true
SOKETI_APP_MANAGER_CACHE_TTL: 3600
SOKETI_DB_REDIS_HOST: "${REDIS_HOST:-valkey}"
SOKETI_DB_REDIS_PORT: "${REDIS_PORT:-6379}"
SOKETI_DB_REDIS_DB: "${REDIS_SOKETI_DB:-1}"
SOKETI_DB_POSTGRES_HOST: "${DB_HOST:-pgsql}"
SOKETI_DB_POSTGRES_PORT: "${DB_PORT:-5432}"
SOKETI_CACHE_DRIVER: redis
SOKETI_QUEUE_DRIVER: redis
SOKETI_RATE_LIMITER_DRIVER: redis
SOKETI_RATE_LIMITER_REDIS_CLUSTER_MODE: false
CACHE_REDIS_CLUSTER_MODE: false
SOKETI_DB_POSTGRES_USERNAME: "${DB_USERNAME:-dusan_malusev}"
SOKETI_DB_POSTGRES_PASSWORD: "${DB_PASSWORD:-dusan_malusev}"
SOKETI_DB_POSTGRES_DATABASE: "${DB_DATABASE:-dusan_malusev}"
SOKETI_APP_MANAGER_POSTGRES_TABLE: soketi_apps
SOKETI_APP_MANAGER_POSTGRES_VERSION: "15"
SOKETI_DB_POOLING_ENABLED: true
SOKETI_DB_POOLING_MIN: 1
SOKETI_DB_POOLING_MAX: 100
SOKETI_METRICS_ENABLED: 1
SOKETI_QUEUE_REDIS_CONCURRENCY: 10
networks:
- dusan_malusev
ports:
- "6001:6001"
dozzle:
image: "amir20/dozzle:latest"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
ports:
- "8000:8080"
typesense:
image: "typesense/typesense:28.0.rc31"
ports:
- "${FORWARD_TYPESENSE_PORT:-8108}:8108"
environment:
TYPESENSE_DATA_DIR: "${TYPESENSE_DATA_DIR:-/typesense-data}"
TYPESENSE_API_KEY: "${TYPESENSE_API_KEY:-xyz}"
TYPESENSE_ENABLE_CORS: "${TYPESENSE_ENABLE_CORS:-true}"
volumes:
- "sail-typesense:/typesense-data"
networks:
- dusan_malusev
healthcheck:
test:
- CMD
- wget
- "--no-verbose"
- "--spider"
- "http://localhost:8108/health"
retries: 5
timeout: 7s
networks:
dusan_malusev:
name: dusan_malusev
driver: bridge
volumes:
dusan_malusev-pgsql:
driver: local
dusan_malusev-valkey:
driver: local
dusan_malusev-minio:
driver: local
caddy_data:
driver: local
caddy_config:
driver: local
sail-typesense:
driver: local