-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (54 loc) · 1.48 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.8"
services:
php:
image: zakery1369/moodle:latest
container_name: phpmoodle
working_dir: /var/www/html
volumes:
- ./php-fpm/var/log/php-fpm:/var/log/php-fpm
- ./var/www/html:/var/www/html
- ./php-fpm/php.ini-development:/usr/local/etc/php/php.ini-development
- ./php-fpm/php.ini-production:/usr/local/etc/php/php.ini-production
- ./php-fpm/www.conf:/usr/local/etc/php-fpm.d/www.conf
- ./php-fpm/php.ini:/usr/local/etc/php/conf.d/php.ini
restart: unless-stopped
networks:
- moodle
mysql:
image: mysql/mysql-server:8.0.27
container_name: mysqlmoodle
volumes:
- ./mysql/my.cnf:/etc/my.cnf
- ./mysql/mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 147258369
MYSQL_DATABASE: moodle
MYSQL_USER: moodle
MYSQL_PASSWORD: 147258369
restart: unless-stopped
networks:
- moodle
nginx:
image: nginx:latest
container_name: nginxmoodle
working_dir: /var/www/html
volumes:
- ./var/www/html:/var/www/html
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
- 443:443
restart: unless-stopped
networks:
- moodle
redis:
image: redis:latest
container_name: redismoodle
restart: unless-stopped
networks:
- moodle
networks:
moodle:
name: moodle-network
driver: bridge