-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocker-compose.pgsql.yml
More file actions
74 lines (66 loc) · 2.71 KB
/
docker-compose.pgsql.yml
File metadata and controls
74 lines (66 loc) · 2.71 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
#-------------------------------------------
# InvoiceShelf PostgresSQL docker-compose variant
# Repo : https://github.com/InvoiceShelf/docker
#-------------------------------------------
services:
database:
container_name: invoiceshelf-pgsql
image: postgres:15
environment:
- POSTGRES_PASSWORD=somepass # ⚠️ Change DB password before proceeding
- POSTGRES_USER=invoiceshelf # ⚠️ Change DB username before proceeding
- POSTGRES_DB=invoiceshelf # 🚨 Change DB name before proceeding
volumes:
- invoiceshelf_postgres:/var/lib/postgresql/data
networks:
- invoiceshelf
restart: unless-stopped
webapp:
image: invoiceshelf/invoiceshelf:nightly
container_name: invoiceshelf-variant-pgsql
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
- DB_CONNECTION=pgsql
- DB_HOST=database
- DB_PORT=5432
- 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=
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_postgres:
invoiceshelf_storage:
invoiceshelf_modules: