forked from Talishar/Talishar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (68 loc) · 2.49 KB
/
docker-compose.yml
File metadata and controls
70 lines (68 loc) · 2.49 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
version: "3.7"
# Production SSL Configuration Notes:
# For production deployments with SSL, ensure your Apache/Nginx reverse proxy has:
# 1. Valid SSL certificate matching all server names (talishar.net, www.talishar.net, api.talishar.net, fe.talishar.net, legacy.talishar.net)
# 2. Use Let's Encrypt or your certificate provider to generate a certificate covering all domains
# 3. Update your reverse proxy (not this container) with the certificate paths
# 4. This Docker container handles HTTP only - SSL termination happens at the reverse proxy
#
# To fix SSL certificate mismatch warnings (AH01909):
# - Check your Apache/Nginx vhost configuration
# - Verify the certificate includes Subject Alternative Names (SANs) for all domains
# - Command to check cert: openssl x509 -in cert.pem -text -noout | grep -A1 "Subject Alternative Name"
services:
web-server:
build:
dockerfile: Dockerfile
context: .
restart: always
volumes:
- "./:/var/www/html/game"
- "../Talishar-FE:/opt/project/Talishar-FE" # Frontend project for ad-hoc running of zzCardCodeGenerator.php
- "./docker/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" # Xdebug configuration
- "./docker/docker-php-ext-opcache.ini:/usr/local/etc/php/conf.d/docker-php-ext-opcache.ini" # OPCache configuration
# - "./.tmp:/tmp" # Temporary files for debugging
command: apache2-foreground
ports:
- "8080:80"
depends_on:
- redis
- mysql-server
environment:
PHP_FPM_CLEAR_ENV: "no"
MYSQL_ROOT_PASSWORD: "secret"
MYSQL_SERVER_NAME: "mysql-server"
MYSQL_SERVER_USER_NAME: "root"
REDIS_HOST: "app_redis"
REDIS_ENABLED: "true"
DOMAIN: "localhost"
METAFY_CLIENT_ID: "4gIw_YYtamUjZ0yadyy3gYaL_BJkaRnPOa5SKCLbEPI"
METAFY_LOGIN_CLIENT_ID: "2gAjeLUQxKdjOUaMP63CyoVHqedqkjQLa-WntE6UHss"
mysql-server:
image: mysql:lts
restart: always
environment:
PHP_FPM_CLEAR_ENV: "no"
MYSQL_ROOT_PASSWORD: "secret"
MYSQL_SERVER_NAME: "mysql-server"
MYSQL_SERVER_USER_NAME: "root"
MYSQL_DATABASE: "fabonline"
volumes:
- ./mysql-data:/var/lib/mysql
- ./Database:/docker-entrypoint-initdb.d
phpmyadmin:
image: phpmyadmin:latest
restart: always
environment:
PMA_HOST: mysql-server
PMA_USER: root
PMA_PASSWORD: "secret"
ports:
- "5001:80"
redis:
image: redis:7.0
container_name: app_redis
ports:
- "6382:6379"
volumes:
mysql-data: