-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
96 lines (88 loc) · 1.93 KB
/
Copy pathdocker-compose.yml
File metadata and controls
96 lines (88 loc) · 1.93 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
x-app-volumes: &app-volumes
- ./.env:/var/www/html/.env:ro
- storage:/var/www/html/storage
- database:/var/www/html/database
services:
app:
build:
context: .
target: app
secrets:
- composer_auth
environment:
CONTAINER_ROLE: app
RUN_MIGRATIONS: "true"
volumes: *app-volumes
restart: unless-stopped
web:
build:
context: .
target: nginx
secrets:
- composer_auth
ports:
- "${APP_PORT:-8080}:80"
volumes:
- storage:/var/www/html/storage:ro
depends_on:
- app
restart: unless-stopped
queue:
build:
context: .
target: app
secrets:
- composer_auth
command: ["php", "artisan", "queue:work", "--sleep=1", "--tries=1", "--timeout=0"]
environment:
CONTAINER_ROLE: queue
volumes: *app-volumes
depends_on:
- app
restart: unless-stopped
scheduler:
build:
context: .
target: app
secrets:
- composer_auth
command: ["php", "artisan", "scheduler:work"]
environment:
CONTAINER_ROLE: scheduler
volumes: *app-volumes
depends_on:
- app
restart: unless-stopped
octane:
profiles: ["octane"]
build:
context: .
target: octane
secrets:
- composer_auth
command: ["php", "artisan", "octane:start", "--server=frankenphp", "--host=0.0.0.0", "--port=8000"]
environment:
CONTAINER_ROLE: octane
OCTANE_SERVER: frankenphp
ports:
- "${OCTANE_PORT:-8000}:8000"
volumes: *app-volumes
depends_on:
- app
restart: unless-stopped
rust-executor:
profiles: ["rust-executor"]
build:
context: ./executor
environment:
RUST_LOG: "${GWM_RUST_EXECUTOR_LOG_LEVEL:-info}"
GWM_EXECUTOR_BIND: "0.0.0.0:8787"
expose:
- "8787"
restart: unless-stopped
volumes:
storage:
database:
secrets:
composer_auth:
environment: COMPOSER_AUTH