-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
99 lines (86 loc) · 2.98 KB
/
docker-compose.yaml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3.8'
services:
# php:
# container_name: php
# image: php
# expose:
# - 9000
# volumes:
# - .:/app
apache:
container_name: php-apache-dev
image: webdevops/php-apache-dev:8.1
working_dir: /app
links:
- smtp4dev:smtp4dev
environment:
WEB_DOCUMENT_ROOT: /app/public
WEB_DOCUMENT_INDEX: index.php
LOG_STDOUT: ./var/log/app.stdout.log
LOG_STDERR: ./var/log/app.stderr.log
# @todo list of unwanted PHP modules, cf. https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-apache-dev.html#php-modules
# PHP_DISMOD:
php.error_reporting: E_ALL
PHP_DISPLAY_ERRORS: 1
PHP_POST_MAX_SIZE: 80M
PHP_UPLOAD_MAX_FILESIZE: 200M
PHP_MEMORY_LIMIT: 521M
PHP_MAX_EXECUTION_TIME: 300
ports:
# - 8080:80
# - 8080:8080
# - 80:80
- 3005:80
- 443:443
volumes:
- .:/app
- ./.container/logs:/var/www/logs
- ~/.composer:/home/application/.composer
# - .docker/php.ini:/opt/bitnami/php/lib/php.ini
# - .docker/php.ini:/usr/local/etc/php/php.ini
restart: always
# apache:
# container_name: apache
# image: webdevops/apache:latest
# environment:
# - PHP_SOCKET=php:9000
# links:
# - php
# working_dir: /app
# links:
# - smtp4dev:smtp4dev
# ports:
# # - 8080:80
# # - 8080:8080
# # - 80:80
# - 3005:80
# - 443:443
# volumes:
# - .:/app
# - ./.container/logs:/var/www/logs
# # - .docker/php.ini:/opt/bitnami/php/lib/php.ini
# # - .docker/php.ini:/usr/local/etc/php/php.ini
# restart: always
smtp4dev:
container_name: smtp4dev
image: rnwood/smtp4dev:v3
restart: always
ports:
# Change the number before : to the port the web interface should be accessible on
- 5000:80
# Change the number before : to the port the SMTP server should be accessible on
- 25:25
# Change the number before : to the port the IMAP server should be accessible on
- 143:143
volumes:
# This is where smtp4dev stores the database..
- .container/smtp4dev:/smtp4dev
environment:
# Uncomment to customise these settings
#Specifies the virtual path from web server root where SMTP4DEV web interface will be hosted. e.g. "/" or "/smtp4dev"
#- ServerOptions__BasePath=/smtp4dev
#Specifies the server hostname. Used in auto-generated TLS certificate if enabled.
- ServerOptions__HostName=smtp4dev
volumes:
.container:
.container/smtp4dev: