-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
50 lines (44 loc) · 1.21 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
version: '3'
services:
app:
image: code4romania/website-factory
depends_on:
- db
ports:
- 8080:80
environment:
APP_KEY: "CHANGE_ME"
APP_URL: "https://example.com"
WEBSITE_FACTORY_EDITION: "ong" # or "government" or "primarie"
DB_CONNECTION: "pgsql"
DB_HOST: "db"
DB_PORT: "5432"
DB_DATABASE: "website_factory"
DB_USERNAME: "postgres"
DB_PASSWORD: "RANDOM_GENERATED_PASSWORD"
MAIL_MAILER: "smtp"
MAIL_HOST: "smtp.example.com"
MAIL_PORT: "587"
MAIL_USERNAME: "[email protected]"
MAIL_PASSWORD: "CHANGE_ME"
MAIL_ENCRYPTION: "tls"
MAIL_FROM_ADDRESS: "[email protected]"
MAIL_FROM_NAME: "CHANGE_ME"
# you can safely remove these two lines after running the container for the first time
ADMIN_EMAIL: "[email protected]"
ADMIN_PASSWORD: "INITIAL_PASSWORD"
volumes:
- app-data:/var/www/storage
db:
image: postgres:13
ports:
- 5432:5432
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "RANDOM_GENERATED_PASSWORD"
POSTGRES_DB: "website_factory"
volumes:
- db-data:/var/lib/postgresql/data/
volumes:
app-data:
db-data: