-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
80 lines (80 loc) · 2.88 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
# to run on coolify
services:
web:
build:
dockerfile: ./docker/web/Dockerfile
environment:
- SERVICE_FQDN_TYPO3_8080
- PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE:-64M}
- PHP_UPLOAD_MAX_FILE_SIZE=${PHP_UPLOAD_MAX_FILE_SIZE:-64M}
- PHP_DATE_TIMEZONE=${TIMEZONE:-Europe/Berlin}
- PHP_OPCACHE_ENABLE=1
- HEALTHCHECK_PATH=${HEALTHCHECK_PATH:-/healthcheck}
- TYPO3_CONTEXT=${TYPO3_CONTEXT:-Production}
- TYPO3_BE_INSTALLTOOLPASSWORD=${TYPO3_BE_INSTALLTOOLPASSWORD:-}
- TYPO3_DB_CONNECTIONS_DEFAULT_DBNAME=$MYSQL_DATABASE
- TYPO3_DB_CONNECTIONS_DEFAULT_HOST=db
- TYPO3_DB_CONNECTIONS_DEFAULT_PASSWORD=$MYSQL_PASSWORD
- TYPO3_DB_CONNECTIONS_DEFAULT_PORT=3306
- TYPO3_DB_CONNECTIONS_DEFAULT_USER=$MYSQL_USER
- TYPO3_DB_CONNECTIONS_DEFAULT_DRIVER=${TYPO3_DB_CONNECTIONS_DEFAULT_DRIVER:-pdo_mysql}
- TYPO3_MAIL_TRANSPORT=${TYPO3_MAIL_TRANSPORT:-smtp}
- TYPO3_MAIL_TRANSPORT_SMTP_SERVER=${TYPO3_MAIL_TRANSPORT_SMTP_SERVER:-mailer:1025}
- TYPO3_MAIL_TRANSPORT_SMTP_USERNAME=${TYPO3_MAIL_TRANSPORT_SMTP_USERNAME:-}
- TYPO3_MAIL_TRANSPORT_MBOX_FILE=${TYPO3_MAIL_TRANSPORT_SMTP_USERNAME:-}
- TYPO3_MAIL_DEFAULTMAILFROMADDRESS=${TYPO3_MAIL_DEFAULTMAILFROMADDRESS:[email protected]}
- TYPO3_MAIL_DEFAULTMAILFROMNAME=${TYPO3_MAIL_DEFAULTMAILFROMNAME:-TYPO3 Surfcamp}
- TYPO3_SYS_ENCRYPTIONKEY=${TYPO3_SYS_ENCRYPTIONKEY:-}
- TYPO3_SYS_REVERSEPROXYIP=${TYPO3_SYS_REVERSEPROXYIP:-}
- TYPO3_SYS_REVERSEPROXYSSL=${TYPO3_SYS_REVERSEPROXYSSL:-}
- TYPO3_SYS_SYSTEMLOCALE=${TYPO3_SYS_SYSTEMLOCALE:-en_US.UTF-8}
- TYPO3_BE_USER_NAME=$TYPO3_BE_USER_NAME
- TYPO3_BE_USER_PASSWORD=$TYPO3_BE_USER_PASSWORD
depends_on:
db:
condition: service_healthy
mailer:
condition: service_started
healthcheck:
test: [ "CMD", "/usr/local/bin/php-fpm-healthcheck" ]
interval: 5s
timeout: 10s
retries: 10
db:
build:
dockerfile: ./docker/db/Dockerfile
environment:
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE=${MYSQL_DATABASE:-db}
- MYSQL_USER=${MYSQL_USER:-db}
- MYSQL_PASSWORD=$MYSQL_PASSWORD
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
interval: 5s
timeout: 20s
retries: 10
mailer:
image: axllent/mailpit
volumes:
- type: bind
source: ./htpasswd
target: /data/htpasswd
isDirectory: false
content: ""
environment:
- SERVICE_FQDN_MAILPIT_8025
- MP_MAX_MESSAGES=5000
- MP_DATABASE=/data/mailpit.db
- MP_SMTP_AUTH_ACCEPT_ANY=1
- MP_SMTP_AUTH_ALLOW_INSECURE=1
- MP_UI_AUTH_FILE=/data/htpasswd
healthcheck:
test:
[
"CMD",
"/mailpit",
"readyz",
]
interval: 5s
timeout: 20s
retries: 10