-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (72 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (72 loc) · 1.71 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
71
72
73
74
75
76
77
78
services:
dns:
build:
context: ./dns
dockerfile: Dockerfile
container_name: lti_dns
networks:
internal:
ipv4_address: 172.20.0.100
ports:
- "3535:53/tcp"
- "3535:53/udp"
cap_add:
- NET_ADMIN
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
container_name: lti_nginx
networks:
internal:
ipv4_address: 172.20.0.5
dns: 172.20.0.100
volumes:
- ./moodle/:/var/www/html
php:
build:
context: ./php
dockerfile: Dockerfile
command: ["/bin/sh", "-c", "chown -R www-data:www-data /var/www/moodledata && chmod -R 777 /var/www/moodledata && php-fpm"]
container_name: lti_php
networks:
internal:
ipv4_address: 172.20.0.2
dns: 172.20.0.100
environment:
- MOODLE_DOCKER_DB=pgsql
- MOODLE_DOCKER_WEB_HOST=web
- XDEBUG_MODE=debug
- XDEBUG_CONFIG=client_host=host.docker.internal client_port=9003
volumes:
- ./moodle/:/var/www/html
- moodledata:/var/www/moodledata:rw
- ./docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- moodledata:/var/www/moodledata
extra_hosts:
- "host.docker.internal:host-gateway"
db:
image: postgres:16.3
container_name: lti_postgres
networks:
internal:
ipv4_address: 172.20.0.3
dns: 172.20.0.100
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "15432:5432"
environment:
POSTGRES_DB: moodle
POSTGRES_USER: moodle
POSTGRES_PASSWORD: moodle
networks:
internal:
name: lti_network
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
volumes:
moodledata:
pgdata: