forked from coollabsio/shoutrrr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.development.yaml
More file actions
113 lines (105 loc) · 3.53 KB
/
Copy pathdocker-compose.development.yaml
File metadata and controls
113 lines (105 loc) · 3.53 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: shoutrrr-development
# Local runtime preview. This builds the same minimal image used in production
# and keeps PostgreSQL, web, queue, and scheduler as separate processes.
x-app-image: &app-image
image: "ioterax/shoutrrr:development"
pull_policy: never
build:
context: .
dockerfile: Dockerfile
args:
APP_VERSION: "${APP_VERSION:-development}"
init: true
env_file:
- path: .env
required: false
environment: &app-environment
APP_NAME: "${APP_NAME:-iot.EraX Shout}"
APP_ENV: "local"
APP_KEY: "${APP_KEY:?Set APP_KEY to a generated Laravel application key}"
APP_DEBUG: "${APP_DEBUG:-true}"
APP_URL: "${APP_URL:-http://localhost:8080}"
OCTANE_SERVER: "frankenphp"
OCTANE_HTTPS: "false"
INERTIA_SSR_ENABLED: "false"
DB_CONNECTION: "pgsql"
DB_HOST: "postgres"
DB_PORT: "5432"
DB_DATABASE: "${POSTGRES_DB:-shoutrrr}"
DB_USERNAME: "${POSTGRES_USER:-shoutrrr}"
DB_PASSWORD: "${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}"
CACHE_STORE: "database"
QUEUE_CONNECTION: "database"
SESSION_DRIVER: "database"
FILESYSTEM_DISK: "public"
MAIL_MAILER: "log"
MAIL_FROM_ADDRESS: "security@ioterax.com"
MAIL_FROM_NAME: "iot.EraX Security"
volumes:
- storage:/var/www/html/storage
services:
postgres:
image: "ioterax/shoutrrr-postgres:18.6-local"
pull_policy: never
build:
context: .
dockerfile: Dockerfile.postgres
restart: unless-stopped
environment:
POSTGRES_DB: "${POSTGRES_DB:-shoutrrr}"
POSTGRES_USER: "${POSTGRES_USER:-shoutrrr}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD}"
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 20
migrate:
<<: *app-image
restart: "no"
command: ["php", "artisan", "migrate", "--force", "--no-interaction"]
depends_on:
postgres:
condition: service_healthy
seed:
<<: *app-image
profiles: ["demo"]
restart: "no"
command: ["php", "artisan", "db:seed", "--class=DefaultUserSeeder", "--force", "--no-interaction"]
depends_on:
migrate:
condition: service_completed_successfully
app:
<<: *app-image
restart: unless-stopped
ports:
- "${APP_PORT:-8080}:8080"
depends_on:
migrate:
condition: service_completed_successfully
stop_grace_period: 60s
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/up"]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
queue:
<<: *app-image
restart: unless-stopped
command: ["php", "artisan", "queue:work", "--sleep=3", "--tries=3", "--timeout=900", "--memory=352"]
depends_on:
migrate:
condition: service_completed_successfully
scheduler:
<<: *app-image
restart: unless-stopped
command: ["php", "artisan", "schedule:work", "--no-interaction"]
depends_on:
migrate:
condition: service_completed_successfully
volumes:
postgres:
storage: