Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
70 lines (65 loc) · 1.61 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
70 lines (65 loc) · 1.61 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
services:
db:
image: mariadb:11.8.5-noble
container_name: "${ENVIROMENT}-mariadb"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
ports:
- "${MYSQL_PORT}:3306"
volumes:
- ./db-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
container_name: "${ENVIROMENT}-phpmyadmin"
ports:
- "${PHPMYADMIN_PORT}:80"
environment:
PMA_HOST: db
depends_on:
- db
php:
build:
context: .
dockerfile: Dockerfile.drupal
container_name: "${ENVIROMENT}-php"
env_file:
- .env
volumes:
- './src:/var/www/html'
- './conf/php/.bashrc:/root/.bashrc'
- './conf/php/php-drupal.ini:/usr/local/etc/php/php.ini'
- './conf/php/99-xdebug.ini:/usr/local/etc/php/conf.d/99-xdebug.ini:ro'
depends_on:
- db
extra_hosts:
- "host.docker.internal:host-gateway"
nginx:
image: nginx:latest
container_name: "${ENVIROMENT}-nginx"
ports:
- "${NGINX_PORT}:80"
volumes:
- './src:/var/www/html'
- './logs/nginx:/var/log/nginx'
- './conf/nginx-drupal:/etc/nginx/conf.d'
depends_on:
- php
varnish:
image: varnish:fresh
container_name: "${ENVIROMENT}-varnish"
restart: always
ports:
- "${VARNISH_PORT}:80"
volumes:
- ./logs/varnish:/var/log/
- ./conf/varnish-drupal/varnish.vcl:/etc/varnish/default.vcl:ro
environment:
BACKENDS: "nginx"
BACKENDS_PORT: 80
BACKENDS_PROBE_ENABLED: "false"
logging:
options:
max-size: 10m