-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.prod.yaml
More file actions
142 lines (133 loc) · 3.35 KB
/
Copy pathcompose.prod.yaml
File metadata and controls
142 lines (133 loc) · 3.35 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
name: renbot-prod
services:
app:
container_name: renbot-prod-app
build:
context: .
dockerfile: ./docker/production/Dockerfile
restart: unless-stopped
env_file:
- .env
ports:
- "${APP_PORT:-8001}:80"
volumes:
- laravel-storage-production:/app/storage
networks:
- laravel-production
- proxy
depends_on:
mariadb:
condition: service_healthy
reverb:
container_name: renbot-prod-reverb
build:
context: .
dockerfile: ./docker/production/Dockerfile
restart: unless-stopped
env_file:
- .env
command: php artisan reverb:start --host=0.0.0.0 --port=8080
volumes:
- laravel-storage-production:/app/storage
ports:
- "${REVERB_PORT_FORWARD:-8080}:8080"
networks:
- laravel-production
- proxy
depends_on:
mariadb:
condition: service_healthy
queue-worker:
container_name: renbot-prod-queue-worker
build:
context: .
dockerfile: ./docker/production/Dockerfile
restart: unless-stopped
env_file:
- .env
command: php artisan queue:work database --sleep=3 --tries=3 --timeout=90
volumes:
- laravel-storage-production:/app/storage
networks:
- laravel-production
depends_on:
mariadb:
condition: service_healthy
pulse:
container_name: renbot-prod-pulse
build:
context: .
dockerfile: ./docker/production/Dockerfile
restart: unless-stopped
env_file:
- .env
command: php artisan pulse:check
volumes:
- laravel-storage-production:/app/storage
networks:
- laravel-production
depends_on:
mariadb:
condition: service_healthy
scheduler:
container_name: renbot-prod-scheduler
build:
context: .
dockerfile: ./docker/production/Dockerfile
restart: unless-stopped
env_file:
- .env
command: php artisan schedule:work
volumes:
- laravel-storage-production:/app/storage
networks:
- laravel-production
depends_on:
mariadb:
condition: service_healthy
nightwatch-agent:
image: laravelphp/nightwatch-agent:latest
container_name: renbot-prod-nightwatch-agent
restart: unless-stopped
env_file:
- .env
environment:
NIGHTWATCH_TOKEN: "${NIGHTWATCH_TOKEN}"
NIGHTWATCH_REQUEST_SAMPLE_RATE: "${NIGHTWATCH_REQUEST_SAMPLE_RATE:-0.4}"
NIGHTWATCH_IGNORE_CACHE_EVENTS: "true"
NIGHTWATCH_INGEST_URI: 0.0.0.0:2407
networks:
- laravel-production
mariadb:
image: mariadb:11.4
container_name: renbot-prod-mariadb
restart: unless-stopped
ports:
- "${FORWARD_DB_PORT:-3306}:3306"
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
volumes:
- mariadb-data-production:/var/lib/mysql
networks:
laravel-production:
aliases:
- mariadb
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
networks:
proxy:
external: true
laravel-production:
name: renbot-prod-network
volumes:
mariadb-data-production:
laravel-storage-production: