forked from badgeteam/Hatchery
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yaml
119 lines (108 loc) · 2.65 KB
/
docker-compose.prod.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
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
version: '3'
services:
nginx:
image: nginx
ports:
- "8060:80"
depends_on:
- websockets
volumes:
# laravel-prod.sh copies the static files out for us
- yarn-out:/app/public
- ./public/eggs:/app/public/eggs
- php-fpm-sock:/php-fpm-sock
- ./docker/nginx.conf:/etc/nginx/nginx.conf
restart: unless-stopped
laravel:
image: "ghcr.io/emfcamp/tidal-hatchery:latest"
command: "docker/laravel-prod.sh"
depends_on:
- mariadb
- redis
- websockets
volumes:
- ./.env.prod:/app/.env
- ./storage:/app/storage
- ./public/eggs:/app/public/eggs
- php-fpm-sock:/php-fpm-sock
- yarn-out:/yarn-out
- ./docker/php-fpm.conf:/usr/local/etc/php-fpm.conf
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_DATABASE: badgeware
DB_USERNAME: badgeware
DB_PASSWORD: badgeware
labels:
com.centurylinklabs.watchtower.enable: true
networks:
- hatchery
restart: unless-stopped
websockets:
image: quay.io/soketi/soketi:latest-16-alpine
ports:
- "8061:6001"
# - '${SOKETI_PORT:-6001}:6001'
# - '${SOKETI_METRICS_SERVER_PORT:-9601}:9601'
depends_on:
- redis
environment:
SOKETI_METRICS_SERVER_PORT: '9601'
SOKETI_DEFAULT_APP_ID: 'soketi'
SOKETI_DEFAULT_APP_KEY: 'soketi'
SOKETI_DEFAULT_APP_SECRET: 'soketi'
labels:
com.centurylinklabs.watchtower.enable: true
networks:
- hatchery
restart: unless-stopped
horizon:
image: "ghcr.io/emfcamp/tidal-hatchery:latest"
command: "php artisan horizon"
depends_on:
- mariadb
- redis
- websockets
volumes:
- ./.env.prod:/app/.env
- ./storage:/app/storage
- ./public/eggs:/app/public/eggs
environment:
DB_HOST: mariadb
DB_PORT: 3306
DB_DATABASE: badgeware
DB_USERNAME: badgeware
DB_PASSWORD: badgeware
labels:
com.centurylinklabs.watchtower.enable: true
networks:
- hatchery
restart: unless-stopped
mariadb:
image: mariadb:10.5
volumes:
- ./database/mariadb:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: badgeware
MYSQL_USER: badgeware
MYSQL_PASSWORD: badgeware
networks:
- hatchery
restart: unless-stopped
redis:
image: redis
networks:
- hatchery
restart: unless-stopped
watchtower:
image: "containrrr/watchtower"
command: --interval 30 --label-enable
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
networks:
hatchery:
volumes:
yarn-out:
php-fpm-sock: