-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.codespaces.yml
More file actions
95 lines (91 loc) · 2.63 KB
/
Copy pathdocker-compose.codespaces.yml
File metadata and controls
95 lines (91 loc) · 2.63 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
name: astra-panel-codespaces
services:
database:
container_name: astra-panel-database
image: mariadb:11
restart: unless-stopped
environment:
MARIADB_DATABASE: panel
MARIADB_USER: pterodactyl
MARIADB_PASSWORD: "${DB_PASSWORD:?DB_PASSWORD is required}"
MARIADB_ROOT_PASSWORD: "${DB_ROOT_PASSWORD:?DB_ROOT_PASSWORD is required}"
volumes:
- ./.codespaces/database:/var/lib/mysql
healthcheck:
test:
- CMD-SHELL
- >-
mariadb --protocol=tcp --host=127.0.0.1
--user="$${MARIADB_USER}" --password="$${MARIADB_PASSWORD}"
--database="$${MARIADB_DATABASE}" --execute="SELECT 1" >/dev/null 2>&1
interval: 5s
timeout: 5s
retries: 30
start_period: 20s
cache:
container_name: astra-panel-cache
image: redis:7-alpine
restart: unless-stopped
command: redis-server --appendonly yes
volumes:
- ./.codespaces/redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 20
panel:
container_name: astra-panel
image: astra-panel:codespaces
build:
context: .
dockerfile: Dockerfile.astra
restart: unless-stopped
depends_on:
database:
condition: service_healthy
cache:
condition: service_healthy
ports:
- "${PTERO_PORT:-8080}:80"
volumes:
- ./.codespaces/panel-var:/app/var
- ./.codespaces/logs:/app/storage/logs
environment:
APP_ENV: production
APP_NAME: "${APP_NAME:-Astra Panel}"
APP_LOCALE: "${APP_LOCALE:-pt-BR}"
APP_FALLBACK_LOCALE: en
APP_DEBUG: "false"
APP_ENVIRONMENT_ONLY: "false"
APP_URL: "${APP_URL:?APP_URL is required}"
APP_TIMEZONE: "${APP_TIMEZONE:-America/Sao_Paulo}"
APP_SERVICE_AUTHOR: "${ADMIN_EMAIL:-admin@example.com}"
TRUSTED_PROXIES: "*"
LOG_CHANNEL: daily
DB_CONNECTION: mysql
DB_HOST: database
DB_PORT: "3306"
DB_DATABASE: panel
DB_USERNAME: pterodactyl
DB_PASSWORD: "${DB_PASSWORD:?DB_PASSWORD is required}"
CACHE_DRIVER: redis
SESSION_DRIVER: redis
QUEUE_CONNECTION: redis
QUEUE_DRIVER: redis
REDIS_HOST: cache
REDIS_PORT: "6379"
HASHIDS_LENGTH: "8"
MAIL_MAILER: log
MAIL_DRIVER: log
MAIL_FROM_ADDRESS: "${ADMIN_EMAIL:-admin@example.com}"
MAIL_FROM_NAME: "${APP_NAME:-Astra Panel}"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1/ >/dev/null || exit 1"]
interval: 10s
timeout: 5s
retries: 30
start_period: 90s
networks:
default:
name: astra-panel-internal