-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (73 loc) · 2.08 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
68
69
70
71
72
73
74
75
76
77
78
# Minimal docker for openlucius.localhost
version: '3.5'
services:
proxy:
networks:
default:
image: nginx:1.13.0-alpine
container_name: "openlucius_nginx"
depends_on:
- php
volumes:
- ./docker/proxy/nginx.conf:/etc/nginx/nginx.conf
- ./docker/proxy/cert.crt:/usr/share/ssl/cert.crt
- ./docker/proxy/cert.key:/usr/share/ssl/cert.key
ports:
- 80:80
- 443:443
apache:
networks:
default:
image: wodby/php-apache
working_dir: "/var/www/html/web"
volumes:
- ./web:/var/www/html/web:delegated
- ./docker/public_files:/var/www/html/web/sites/default/files
- ./docker/private_files:/var/www/private
container_name: 'openlucius_apache'
depends_on:
- php
env_file:
- ./.env
php:
networks:
default:
image: wodby/drupal-php:7.4
container_name: 'openlucius_php'
volumes:
- ./load.environment.php:/var/www/html/load.environment.php:delegated
- ./web:/var/www/html/web:delegated
- ./vendor:/var/www/html/vendor:delegated
- ./docker/web/settings.local.php:/var/www/html/web/sites/default/settings.php:delegated
- ./config:/var/www/html/config:delegated
- ./scripts:/var/www/html/scripts
- ./drush:/var/www/html/drush
- ./composer.json:/var/www/html/composer.json
- ./composer.lock:/var/www/html/composer.lock
- ./docker/web/development.services.yml:/var/www/html/web/sites/development.services.yml
- ./docker/public_files:/var/www/html/web/sites/default/files
- ./docker/private_files:/var/www/private
env_file:
- ./.env
database:
networks:
default:
image: mysql:5.7.18
ports:
- 3307:3306
volumes:
- ./docker/database:/docker-entrypoint-initdb.d:delegated
- ./docker/database/mysqld.cnf:/etc/mysql/conf.d/mysqld.cnf:delegated
container_name: 'openlucius_database'
env_file:
- ./.env
mailhog:
networks:
default:
ports:
- '8025:8025'
image: mailhog/mailhog
container_name: "openlucius_mailhog"
networks:
default:
driver: bridge