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
55 lines (55 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
55 lines (55 loc) · 1.54 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
version: "3.7"
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"
mysql-server:
image: mysql:latest
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: