-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (72 loc) · 1.69 KB
/
docker-compose.yml
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
services:
php:
build: ./docker/php
volumes:
- .:/var/ricochetuniverse
# depends_on:
# - mariadb
queue:
build: ./docker/php
# https://laravel.com/docs/11.x/queues#running-the-queue-worker
command: php artisan queue:listen redis
volumes:
- .:/var/ricochetuniverse
depends_on:
- mariadb
- redis
schedule:
build: ./docker/php
# https://laravel.com/docs/11.x/scheduling#running-the-scheduler-locally
command: php artisan schedule:work
volumes:
- .:/var/ricochetuniverse
depends_on:
- mariadb
- redis
mariadb:
image: mariadb:11.4.3
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mariadb_root_password
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
secrets:
- mariadb_root_password
volumes:
- mariadb-data:/var/lib/mysql
# uncomment for debugging
ports:
- '127.0.0.1:3306:3306'
caddy:
image: caddy:2.8.4-alpine
environment:
- CADDY_TLS_MODE
- CADDY_TLS_EMAIL
- CADDY_TLS_CERT
- CADDY_TLS_KEY
volumes:
- .:/var/ricochetuniverse
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy-data:/data
- caddy-config:/config
ports:
- '8000:8000'
depends_on:
- php
node:
image: node:20
volumes:
- .:/var/ricochetuniverse
working_dir: /var/ricochetuniverse
redis:
image: redis:6.2.14-alpine
# uncomment for debugging
# ports:
# - '127.0.0.1:6379:6379'
volumes:
mariadb-data:
caddy-data:
caddy-config:
secrets:
mariadb_root_password:
file: ./docker/secrets/mariadb_root_password.txt