-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
executable file
·51 lines (47 loc) · 1.21 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
version: "3.7"
services:
db:
image: mysql:5.7
volumes:
- db-data-${WORDPRESS_VERSION:-5.5.0}:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
wordpress:
image: naveen17797/gitpress:0.3.0
ports:
- 80:80
depends_on:
- db
volumes:
- ./:/var/www/html/wp-content/mu-plugins/gitpress
- ./wp-config.php:/var/www/html/wp-config.php
environment:
WORDPRESS_DB_HOST: localhost
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: 1
# db-backup:
# image: alpine
# tty: false
# environment:
# - TARGET=db-data-5.5.0
# volumes:
# - ./backup:/backup
# - db-data-5.5.0:/volume
# command: sh -c "tar -cjf /backup/$${TARGET}.tar.bz2 -C /volume ./"
#
# db-restore:
# image: alpine
# environment:
# - SOURCE=db-data-5.5.0
# volumes:
# - ./backup:/backup
# - db-data-5.5.0:/volume
# command: sh -c "rm -rf /volume/* /volume/..?* /volume/.[!.]* ; tar -C /volume/ -xjf /backup/$${SOURCE}.tar.bz2"
volumes:
db-data-5.5.0:
wordpress-data-5.5.0: