-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.v2.dev.yml
More file actions
148 lines (142 loc) · 4.31 KB
/
docker-compose.v2.dev.yml
File metadata and controls
148 lines (142 loc) · 4.31 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
services:
mysql:
network_mode: host
command: ["mariadbd", "--port=${MARIADB_PORT:-3307}"]
image: mariadb:latest
container_name: featherpanel_mysql
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:-featherpanel_root}
MARIADB_DATABASE: ${MARIADB_DATABASE:-featherpanel}
MARIADB_USER: ${MARIADB_USER:-featherpanel}
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-featherpanel_password}
MARIADB_AUTO_UPGRADE: "1"
volumes:
- mariadb_data:/var/lib/mysql
- ./mysql/init:/docker-entrypoint-initdb.d
healthcheck:
test:
[
"CMD",
"mariadb-admin",
"ping",
"-h",
"127.0.0.1",
"-P",
"${MARIADB_PORT:-3307}",
"-u",
"root",
"-pfeatherpanel_root",
]
timeout: 20s
retries: 10
redis:
image: redis:latest
container_name: featherpanel_redis
restart: unless-stopped
network_mode: host
command: redis-server --appendonly yes --port ${REDIS_PORT:-6380} --requirepass ${REDIS_PASSWORD:-featherpanel_redis}
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "-h", "127.0.0.1", "-p", "${REDIS_PORT:-6380}", "-a", "${REDIS_PASSWORD:-featherpanel_redis}", "ping"]
timeout: 20s
retries: 10
backend:
network_mode: host
image: ghcr.io/mythicalltd/featherpanel-backend:dev
container_name: featherpanel_backend
restart: unless-stopped
environment:
- DATABASE_HOST=127.0.0.1
- DATABASE_PORT=${MARIADB_PORT:-3307}
- DATABASE_DATABASE=${MARIADB_DATABASE:-featherpanel}
- DATABASE_USER=${MARIADB_USER:-featherpanel}
- DATABASE_PASSWORD=${MARIADB_PASSWORD:-featherpanel_password}
- DATABASE_ENCRYPTION=xchacha20
- REDIS_HOST=127.0.0.1
- REDIS_PORT=${REDIS_PORT:-6380}
- REDIS_PASSWORD=${REDIS_PASSWORD:-featherpanel_redis}
- TRUST_PROXY_HEADERS=true
- BACKEND_LISTEN_ADDR=${BACKEND_LISTEN_ADDR:-:8080}
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "php", "cli", "help"]
timeout: 20s
retries: 10
volumes:
- featherpanel_attachments:/var/www/html/public/attachments
- featherpanel_config:/var/www/html/storage/config
- featherpanel_snapshots:/var/www/html/storage/backups
frontendv2:
image: ghcr.io/mythicalltd/featherpanel-frontendv2:dev
container_name: featherpanel_frontendv2
restart: unless-stopped
network_mode: host
environment:
- INTERNAL_API_URL=http://127.0.0.1:${BACKEND_HTTP_PORT:-8080}
- BACKEND_UPSTREAM=127.0.0.1:${BACKEND_HTTP_PORT:-8080}
- FRONTEND_LISTEN_ADDR=${FRONTEND_LISTEN_ADDR:-:4831}
volumes: []
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
backend:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"wget",
"--quiet",
"--tries=1",
"--spider",
"http://127.0.0.1:${FRONTEND_HTTP_PORT:-4831}",
]
timeout: 20s
retries: 10
async-runner:
network_mode: host
image: ghcr.io/mythicalltd/featherpanel-async-runner:dev
container_name: featherpanel_async_runner
restart: unless-stopped
environment:
- RUST_LOG=info
- DB_HOST=127.0.0.1
- DB_PORT=${MARIADB_PORT:-3307}
- DB_NAME=${MARIADB_DATABASE:-featherpanel}
- DB_USER=${MARIADB_USER:-featherpanel}
- DB_PASS=${MARIADB_PASSWORD:-featherpanel_password}
- REDIS_URL=redis://:${REDIS_PASSWORD:-featherpanel_redis}@127.0.0.1:${REDIS_PORT:-6380}
volumes:
- featherpanel_config:/app/config:ro
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
- net.ipv6.conf.default.disable_ipv6=1
- net.ipv6.conf.lo.disable_ipv6=1
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
frontendv2:
condition: service_healthy
backend:
condition: service_healthy
volumes:
mariadb_data:
driver: local
redis_data:
driver: local
featherpanel_attachments:
driver: local
featherpanel_config:
driver: local
featherpanel_snapshots:
driver: local