-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.mysql.yml
More file actions
93 lines (84 loc) · 3.52 KB
/
Copy pathdocker-compose.mysql.yml
File metadata and controls
93 lines (84 loc) · 3.52 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
#-------------------------------------------
# InvoiceShelf MySQL/MariaDB docker-compose variant
# Repo : https://github.com/InvoiceShelf/docker
#-------------------------------------------
services:
database:
container_name: invoiceshelf-mariadb
image: mariadb:10
environment:
- MYSQL_DATABASE=invoiceshelf # ⚠️ Change DB name before proceeding
- MYSQL_USER=invoiceshelf # ⚠️ Change DB username before proceeding
- MYSQL_PASSWORD=somepass # ⚠️ Change DB password before proceeding
- MYSQL_ROOT_PASSWORD=Ch@ng3_nn3 # 🚨 Change root password before proceeding
volumes:
- invoiceshelf_mariadb:/var/lib/mysql
networks:
- invoiceshelf
healthcheck:
test: ["CMD", "mariadb-admin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
restart: unless-stopped
webapp:
container_name: invoiceshelf-variant-mariadb
image: invoiceshelf/invoiceshelf:latest
environment:
- APP_NAME=InvoiceShelf
- APP_ENV=production
- APP_DEBUG=false
# APP_URL should have:
# 1. Protocol http or https if you are accessing it via reverse proxy with
# SSL, then it will be https, if via local IP, then http.
# 2. IP address of the server or the domain name
# 3. (optional) If you are using a custom port such as :8080 or another.
# REF: https://github.com/InvoiceShelf/InvoiceShelf/issues/213#issuecomment-3026790543
- APP_URL=http://localhost:8090
# SESSION_DOMAIN should have:
# 1. IP address of the server or the domain name
# 2. (optional) If you are using a custom port such as :8080 or another.
# REF: https://github.com/InvoiceShelf/InvoiceShelf/issues/213#issuecomment-3026790543
- SESSION_DOMAIN=localhost
# SANCTUM_STATEFUL_DOMAINS should have:
# 1. IP address of the server or the domain name
# 1.1 (optional) If you are using a custom port such as :8080 or another.
# 2. (optional) If you are planning to access the application from different
# domains, you must add a comma between each domain
# REF: https://github.com/InvoiceShelf/InvoiceShelf/issues/213#issuecomment-3026790543
- SANCTUM_STATEFUL_DOMAINS=localhost:8090
# The container runs Laravel's scheduler itself, which is what creates
# recurring invoices, flags invoices overdue and expires estimates. Set
# this to false only if you drive the schedule from elsewhere, such as a
# second container running `php artisan schedule:work`, or if you run
# more than one replica and want exactly one of them scheduling.
# - SCHEDULER_ENABLED=true
- DB_CONNECTION=mariadb
- DB_HOST=database
- DB_PORT=3306
- DB_DATABASE=invoiceshelf # ⚠️ Change DB name before proceeding
- DB_USERNAME=invoiceshelf # ⚠️ Change DB username before proceeding
- DB_PASSWORD=somepass # ⚠️ Change DB password before proceeding
- DB_PASSWORD_FILE=
- CACHE_STORE=file
- SESSION_DRIVER=file
- SESSION_LIFETIME=240
- AUTORUN_ENABLED=true
- AUTORUN_LARAVEL_MIGRATION=false
- AUTORUN_LARAVEL_OPTIMIZE=false
- PHP_OPCACHE_ENABLE=1
volumes:
- invoiceshelf_storage:/var/www/html/storage/
- invoiceshelf_modules:/var/www/html/Modules/
ports:
- "8090:8080" # 8090 is the public port.
networks:
- invoiceshelf
restart: unless-stopped
depends_on:
- database
networks:
invoiceshelf:
volumes:
invoiceshelf_mariadb:
invoiceshelf_storage:
invoiceshelf_modules: