-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
99 lines (90 loc) · 2.14 KB
/
compose.yml
File metadata and controls
99 lines (90 loc) · 2.14 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
services:
# PHP-FPM only
php:
image: ghcr.io/devvir/mtav-php:${PHP_TAG}
restart: unless-stopped
volumes:
- app_storage:/var/www/storage
- vite_manifest:/var/www/html/vite_manifest
env_file:
- .env
depends_on:
mysql:
condition: service_healthy
# Static assets service
assets:
image: ghcr.io/devvir/mtav-assets:${ASSETS_TAG}
restart: unless-stopped
volumes:
- vite_manifest:/vite_manifest
# Reverse proxy
nginx:
image: ghcr.io/devvir/mtav-nginx:${NGINX_TAG}
restart: unless-stopped
depends_on:
- php
- assets
ports:
- "8080:80"
# Database
mysql:
image: ghcr.io/devvir/mtav-mysql:${MYSQL_TAG}
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MARIADB_INNODB_USE_NATIVE_AIO: 0
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 5s
retries: 6
# Database migrations
migrations:
image: ghcr.io/devvir/mtav-migrations:${MIGRATIONS_TAG}
env_file:
- .env
depends_on:
mysql:
condition: service_healthy
restart: "no"
# Queue workers (supervisord managing 3 worker processes)
queue:
image: ghcr.io/devvir/mtav-queue:${QUEUE_TAG}
restart: unless-stopped
volumes:
- app_storage:/var/www/storage
env_file:
- .env
depends_on:
mysql:
condition: service_healthy
# Mail testing server (preview only)
mailhog:
image: mailhog/mailhog
restart: unless-stopped
ports:
- "1025:1025"
- "8025:8025"
# Reverb WebSocket server for real-time broadcasting
reverb:
image: ghcr.io/devvir/mtav-queue:${QUEUE_TAG}
restart: unless-stopped
command: php artisan reverb:start --host=0.0.0.0 --port=8080
ports:
- "8080:8080"
env_file:
- .env
depends_on:
mysql:
condition: service_healthy
volumes:
mysql_data:
app_storage:
vite_manifest:
networks:
default:
name: prod