forked from Talishar/Talishar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (51 loc) · 1.17 KB
/
docker-compose.yml
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
version: "3.7"
services:
web-server:
build:
dockerfile: Dockerfile
context: .
restart: always
volumes:
- "./:/var/www/html/game"
command: bash "/var/www/html/game/docker-entrypoint.sh"
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: