-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (53 loc) · 1.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
53 lines (53 loc) · 1.12 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: dashboard
POSTGRES_PASSWORD: secret
POSTGRES_DB: telegram_dashboard
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:7-alpine
ports:
- "6379:6379"
laravel:
build: .
ports:
- "8000:8000"
depends_on:
- postgres
- redis
environment:
DB_CONNECTION: pgsql
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: telegram_dashboard
DB_USERNAME: dashboard
DB_PASSWORD: secret
REDIS_HOST: redis
command: sh -c "php artisan migrate --seed && php artisan serve --host=0.0.0.0 --port=8000"
reverb:
build: .
command: php artisan reverb:start --host=0.0.0.0 --port=8080
ports:
- "8080:8080"
depends_on:
- laravel
- redis
horizon:
build: .
command: php artisan horizon
depends_on:
- laravel
- redis
redis-subscriber:
build: .
command: php artisan redis:subscribe
depends_on:
- laravel
- redis
volumes:
postgres_data: