-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
119 lines (113 loc) · 4.37 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
services:
mariadb:
container_name: mariadb
image: docker.io/bitnami/mariadb:${MARIADB_TAG:-latest}
volumes:
- mariadb_data:/bitnami/mariadb
environment:
ALLOW_EMPTY_PASSWORD: ${MARIADB_ALLOW_EMPTY_PASSWORD:-yes}
MARIADB_USER: ${MARIADB_USER:-user}
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-}
MARIADB_DATABASE: ${MARIADB_DATABASE:-wordpress}
wordpress:
container_name: wordpress
build:
context: .
dockerfile: build/docker/Dockerfile.wordpress
args:
WORDPRESS_TAG: ${WORDPRESS_TAG:-latest}
WORDPRESS_SMTP_HOST: ${WORDPRESS_SMTP_HOST:-mailpit}
WORDPRESS_SMTP_PORT_NUMBER: ${WORDPRESS_SMTP_PORT_NUMBER:-1025}
WORDPRESS_SMTP_USER: ${WORDPRESS_SMTP_USER:-}
WORDPRESS_SMTP_PASSWORD: ${WORDPRESS_SMTP_PASSWORD:-}
WORDPRESS_SMTP_PROTOCOL: ${WORDPRESS_SMTP_PROTOCOL:-tls}
depends_on:
- mariadb
ports:
- 80:8080
- 443:8443
- ${PHPSTAN_PRO_WEB_PORT:-11111}:11111
volumes:
- wordpress_data:/bitnami/wordpress:rw
# `-plugin` suffix avoids conflicts
- ${PWD}/${PLUGIN_NAME:-upload-field-to-youtube-for-acf}:/tmp/${PLUGIN_NAME:-upload-field-to-youtube-for-acf}-plugin:rw
- ${PWD}/tmp/certs:/certs
- ${PWD}/tmp/phpstan-fixer:/tmp/phpstan-fixer:rw
environment:
ALLOW_EMPTY_PASSWORD: ${WORDPRESS_ALLOW_EMPTY_PASSWORD:-yes}
WORDPRESS_DATABASE_HOST: ${WORDPRESS_DATABASE_HOST:-mariadb}
WORDPRESS_DATABASE_PORT_NUMBER: ${WORDPRESS_DATABASE_PORT_NUMBER:-3306}
WORDPRESS_DATABASE_NAME: ${WORDPRESS_DATABASE_NAME:-wordpress}
WORDPRESS_DATABASE_USER: ${WORDPRESS_DATABASE_USER:-user}
WORDPRESS_DATABASE_PASSWORD: ${WORDPRESS_DATABASE_PASSWORD:-}
WORDPRESS_USERNAME: ${WORDPRESS_USERNAME:-admin}
WORDPRESS_PASSWORD: ${WORDPRESS_PASSWORD:-password}
WORDPRESS_PLUGINS: ${WORDPRESS_PLUGINS:-}
WORDPRESS_SMTP_HOST: ${WORDPRESS_SMTP_HOST:-mailpit}
WORDPRESS_SMTP_PORT_NUMBER: ${WORDPRESS_SMTP_PORT_NUMBER:-1025}
WORDPRESS_SMTP_USER: ${WORDPRESS_SMTP_USER:-}
WORDPRESS_SMTP_PASSWORD: ${WORDPRESS_SMTP_PASSWORD:-}
WORDPRESS_SMTP_PROTOCOL: ${WORDPRESS_SMTP_PROTOCOL:-tls}
OPENAI_KEY: ${OPENAI_KEY:-}
PHPSTAN_PRO_WEB_PORT: ${PHPSTAN_PRO_WEB_PORT:-11111}
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
node:
container_name: node
image: docker.io/bitnami/node:${NODE_TAG:-latest}
ports:
- ${NODE_PORT:-3000}:3000
volumes:
- ${PWD}:/app
#https://dev.to/igmrrf/docker-react-exited-with-code-0-398n
#https://stackoverflow.com/a/63427684/3929620
#https://stackoverflow.com/a/52336349/3929620
tty: true
environment:
NODE_ENV: ${NODE_ENV:-develop}
DEBUG: ${NODE_DEBUG:-}
LOG_LEVEL: ${NODE_LOG_LEVEL:-}
phpmyadmin:
container_name: phpmyadmin
image: docker.io/bitnami/phpmyadmin:${PHPMYADMIN_TAG:-latest}
ports:
- ${PHPMYADMIN_HTTP_PORT:-8080}:8080
- ${PHPMYADMIN_HTTPS_PORT:-8443}:8443
depends_on:
- mariadb
volumes:
- ${PWD}/tmp/certs:/opt/bitnami/apache/conf/bitnami/certs
environment:
DATABASE_ALLOW_NO_PASSWORD: ${PHPMYADMIN_ALLOW_NO_PASSWORD:-yes}
DATABASE_HOST: ${PHPMYADMIN_DATABASE_HOST:-mariadb}
DATABASE_USER: ${PHPMYADMIN_DATABASE_USER:-user}
DATABASE_PASSWORD: ${PHPMYADMIN_DATABASE_PASSWORD:-}
DATABASE_PORT_NUMBER: ${PHPMYADMIN_DATABASE_PORT_NUMBER:-3306}
DATABASE_ENABLE_SSL: ${PHPMYADMIN_DATABASE_ENABLE_SSL:-no}
DATABASE_SSL_KEY: ${PHPMYADMIN_DATABASE_SSL_KEY:-}
DATABASE_SSL_CERT: ${PHPMYADMIN_DATABASE_SSL_CERT:-}
DATABASE_SSL_CA: ${PHPMYADMIN_DATABASE_SSL_CA:-}
DATABASE_SSL_CA_PATH: ${PHPMYADMIN_DATABASE_SSL_CA_PATH:-}
DATABASE_SSL_CIPHERS: ${PHPMYADMIN_DATABASE_SSL_CIPHERS:-}
DATABASE_SSL_VERIFY: ${PHPMYADMIN_DATABASE_SSL_VERIFY:-yes}
mailpit:
container_name: mailpit
image: docker.io/axllent/mailpit:${MAILPIT_TAG:-latest}
ports:
- ${MAILPIT_HTTP_PORT:-8025}:8025
volumes:
- mailpit_data:/data
- ${PWD}/tmp/certs:/certs
environment:
MP_MAX_MESSAGES: ${MAILPIT_MAX_MESSAGES:-5000}
MP_DATA_FILE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
MP_UI_TLS_CERT: /certs/server.crt
MP_UI_TLS_KEY: /certs/server.key
volumes:
mariadb_data:
driver: local
wordpress_data:
driver: local
mailpit_data:
driver: local