-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
86 lines (82 loc) · 2.25 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
services:
nginx:
container_name: nginx
platform: linux/arm64v8
build:
context: .
dockerfile: nginx.local.dockerfile
ports:
- 8080:8080
- 443:443
volumes:
- ./wordpress:/var/www/html:delegated
- ./opt/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./opt/nginx/localwordpress.conf:/etc/nginx/conf.d/localwordpress.conf
- ./bin/certs:/etc/nginx/certs/self-signed/
depends_on:
- wordpress
- mariadb
environment:
VIRTUAL_HOST: hale.docker
VIRTUAL_PORT: 443
mariadb:
container_name: mariadb
# image: mariadb:10.7.1-focal
image: mariadb:11.1.2-jammy
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
SERVICE_NAME: mariadb
SERVICE_TAGS: local
VIRTUAL_HOST: mariadb.docker
volumes:
- database:/var/lib/mysql
wordpress:
container_name: wordpress
platform: linux/amd64
build:
context: .
dockerfile: wordpress.dockerfile
volumes:
- ./wordpress:/var/www/html:delegated
- ./opt/php/php.ini:/usr/local/etc/php/conf.d/php.ini
depends_on:
- mariadb
env_file:
- .env
environment:
WORDPRESS_DB_HOST: mariadb:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WORDPRESS_ADMIN_USER: admin
WORDPRESS_ADMIN_PASSWORD: wordpress
WORDPRESS_ADMIN_EMAIL: "wordpress@hale.docker"
WP_ENVIRONMENT_TYPE: local
S3_UPLOADS_USE_LOCAL: "true"
S3_UPLOADS_USE_INSTANCE_PROFILE: "false"
S3_UPLOADS_REGION: ""
S3_UPLOADS_BUCKET: ""
SERVER_NAME: "hale.docker"
PHP_DSN: "" # Sentry constant (not used locally)
WP_SENTRY_ENV: ""
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
platform: linux/amd64
ports:
- 3000:80 # access at http://localhost:3000
environment:
PMA_HOST: mariadb
PMA_PORT: 3306
UPLOAD_LIMIT: 600M
MYSQL_ROOT_PASSWORD: root # login root/root
depends_on:
- mariadb
volumes:
database:
driver: local