-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·51 lines (48 loc) · 1.2 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
version: "2"
services:
docker_moodle-app:
# image: php:7.4-fpm
build:
context: PHP/
dockerfile: PHP.Dockerfile
restart: always
container_name: docker_moodle-app
volumes:
- ./moodle:/var/www/html
- ./moodledata:/var/www/moodledata
- ./conf/local.ini:/usr/local/etc/php/php.ini
networks:
- docker_moodle
depends_on:
- docker_moodle-db
docker_moodle-web:
image: nginx
restart: always
container_name: docker_moodle-web
volumes:
- ./conf/nginx.conf:/etc/nginx/nginx.conf:ro
volumes_from:
- docker_moodle-app
ports:
- "8088:8088"
networks:
- docker_moodle
docker_moodle-db:
image: wodby/mariadb:10.6
restart: always
container_name: docker_moodle-db
environment:
- MYSQL_USER=moodledude
- MYSQL_PASSWORD=mysecretpassword
- MYSQL_DATABASE=moodle
- MYSQL_ALLOW_EMPTY_PASSWORD=true
volumes:
- ./dbdata:/var/lib/mysql
- ./conf/mycustom.cnf:/etc/mysql/conf.d/custom.cnf
expose:
- "3306"
networks:
- docker_moodle
networks:
docker_moodle:
external: false