forked from badgeteam/Hatchery
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
81 lines (74 loc) · 1.58 KB
/
docker-compose.yaml
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
version: '3'
services:
laravel:
depends_on:
- mariadb
- redis
links:
- mariadb
- redis
tty: true
build: .
volumes:
- ./app:/app/app
- ./config:/app/config
- ./database:/app/database
- ./public:/app/public
- ./resources:/app/resources
- ./routes:/app/routes
- ./storage:/app/storage
- ./tests:/app/tests
- ./build:/app/build
- ./.git:/app/.git
ports:
- "8000:8000"
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_DATABASE: badgeware
DB_USERNAME: badgeware
DB_PASSWORD: badgeware
networks:
- frontend
- backend
restart: unless-stopped
websockets:
image: quay.io/soketi/soketi:latest-16-alpine
ports:
- '${SOKETI_PORT:-6001}:6001'
- '${SOKETI_METRICS_SERVER_PORT:-9601}:9601'
depends_on:
- redis
links:
- redis
environment:
SOKETI_METRICS_SERVER_PORT: '9601'
SOKETI_DEFAULT_APP_ID: 'soketi'
SOKETI_DEFAULT_APP_KEY: 'soketi'
SOKETI_DEFAULT_APP_SECRET: 'soketi'
networks:
- frontend
- backend
restart: unless-stopped
mariadb:
image: mariadb
volumes:
- ./database/mariadb:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: badgeware
MYSQL_USER: badgeware
MYSQL_PASSWORD: badgeware
networks:
- backend
restart: unless-stopped
redis:
image: redis
networks:
- backend
restart: unless-stopped
networks:
frontend:
driver: bridge
backend:
driver: bridge