-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 956 Bytes
/
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
version: '3'
services:
wp:
image: getshifter/shifter_local:latest
platform: linux/arm64
user: root
links:
- mysql
ports:
- 8443:443
volumes:
- "./volume/app:/var/www/html/web/wp/wp-content"
environment:
- SERVICE_PORT=8443
# - SERVICE_DOMAIN=127.0.0.1
- RDB_ENDPOINT=mysql:3306
- RDB_USER=shifter
- RDB_PASSWD=pass
- SHIFTER_LOCAL=true
# - SITE_SUBDIR=subdirpath # run /subdirpath
# - SERVICE_TYPE=generator # to simulate generator environment
mysql:
image: mysql:5.7
platform: linux/amd64
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=true
- MYSQL_USER=shifter
- MYSQL_PASSWORD=pass
- MYSQL_DATABASE=wordpress
volumes:
- "./mysql.append.cnf:/etc/mysql/mysql.conf.d/mysql.append.cnf"
- "./volume/db:/var/lib/mysql"
command:
- --sql-mode=STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION