-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.j2
72 lines (64 loc) · 2.01 KB
/
docker-compose.yml.j2
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
---
name: hortusfox
networks:
hortusfox:
driver: bridge
web:
name: web
external: true
services:
db:
container_name: hortusfox_db
image: mariadb:lts
environment:
MYSQL_ROOT_PASSWORD: {{ hortusfox.db_root_password | default('dummy') }}
MYSQL_DATABASE: {{ hortusfox.db_database | default('hortusfox') }}
MYSQL_USER: {{ hortusfox.db_user | default('hortusfox') }}
MYSQL_PASSWORD: {{ hortusfox.db_password | default('dummy') }}
hostname: db
labels: {{ (hortusfox_db_container_labels | default({})) | default(omit) }}
networks:
- hortusfox
restart: always
volumes:
- db_data:/var/lib/mysql
- {{ hortusfox_db_backup_volume_name | default('hortusfox_db_backup') }}:/tmp/dumps
app:
container_name: hortusfox_app
image: ghcr.io/danielbrendel/hortusfox-web:v4.0
environment:
APP_ADMIN_EMAIL: {{ hortusfox.admin_email | default('admin@localhost') }}
APP_ADMIN_PASSWORD: {{ hortusfox.admin_password | default('dummy') }}
APP_TIMEZONE: {{ homelab.timezone | default(omit) }}
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: {{ hortusfox.db_database | default('hortusfox') }}
DB_USERNAME: {{ hortusfox.db_user | default('hortusfox') }}
DB_PASSWORD: {{ hortusfox.db_password | default('dummy') }}
DB_CHARSET: "utf8mb4"
hostname: app
labels: {{ (hortusfox_container_labels | default({})) | default(omit) }}
networks:
- hortusfox
- web
ports:
- "8090:80"
volumes:
- app_images:/var/www/html/public/img
- app_logs:/var/www/html/app/logs
- app_backup:/var/www/html/public/backup
- app_themes:/var/www/html/public/themes
- app_migrate:/var/www/html/app/migrations
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
depends_on:
- db
volumes:
db_data:
{{ hortusfox_db_backup_volume_name | default('hortusfox_db_backup') }}:
external: true
app_images:
app_logs:
app_backup:
app_themes:
app_migrate: