-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (67 loc) · 2.26 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
version: '3.9'
services:
db:
container_name: ${DB_HOST:-db.muhit.me}
image: mysql
restart: always
environment:
MYSQL_DATABASE : ${DB_NAME:-wordpress}
MYSQL_USER : ${DB_USER:-maya-user}
MYSQL_PASSWORD : ${DB_PASSWORD:-maya-pass}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-root}
volumes:
- db:/var/lib/mysql
web:
container_name: ${CONTAINER_NAME:-muhit.me}
image: iammuhit/wordpress-bedrock
restart: always
depends_on:
- db
ports:
- 80:80
environment:
# server environs
LETSENCRYPT_HOST: ${VIRTUAL_HOST:-local.muhit.me}
VIRTUAL_HOST : ${VIRTUAL_HOST:-local.muhit.me}
VIRTUAL_PROTO : ${VIRTUAL_PROTO:-http}
VIRTUAL_PORT : ${VIRTUAL_PORT:-80}
# database environs
DB_HOST : ${DB_HOST:-db.muhit.me}
DB_NAME : ${DB_NAME:-wordpress}
DB_USER : ${DB_USER:-maya-user}
DB_PASSWORD: ${DB_PASSWORD:-maya-pass}
# wordpress environs
WP_ENV : ${WP_ENV:-development}
WP_HOME: ${WP_HOME:-http://local.muhit.me}
WP_SITENAME : ${WP_SITENAME:-Wordpress Blog}
WP_ADMIN_USERNAME: ${WP_ADMIN_USERNAME:-admin}
WP_ADMIN_PASSWORD: ${WP_ADMIN_PASSWORD:-super-secret}
WP_ADMIN_EMAIL : ${WP_ADMIN_EMAIL:[email protected]}
WP_CLI_ALLOW_ROOT: ${WP_CLI_ALLOW_ROOT:-true}
WP_GENERATE_SALTS: ${WP_GENERATE_SALTS:-true}
WP_CORE_INSTALL : ${WP_CORE_INSTALL:-false}
volumes:
- backend:/var/www
- db:/var/www/data/db
phpmyadmin:
container_name: pma.${CONTAINER_NAME:-muhit.me}
image: phpmyadmin/phpmyadmin
restart: always
depends_on:
- db
ports:
- 8081:80
environment:
VIRTUAL_HOST : ${DB_HOST:-db.muhit.me}
PMA_HOST : ${DB_HOST:-db.muhit.me}
PMA_PORT : 3306
PMA_ARBITRARY: 1
UPLOAD_LIMIT : 1024M
volumes:
backend:
client:
db:
networks:
default:
name: maya-server
external: false