-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
65 lines (59 loc) · 1.33 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
# DEVELOPMENT DOCKER-COMPOSE FILE
version: "2"
services:
http_server:
image: nginx:1.13.3-alpine
restart: on-failure
ports:
- "80:80"
volumes:
- ./www/wp_files/:/www:ro
- ./configs/nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf:ro
- ./configs/nginx/conf.d:/etc/nginx/conf.d:ro
links:
- wp_server
wp_server:
build:
context: ./docker-images/php/
args:
PHP_VERSION: 7.1
# PHP_VERSION: 7.0
# PHP_VERSION: 5.6
restart: on-failure
user: ${UID}:www-data
volumes:
- ./www/wp_files/:/www
- ./configs/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
links:
- mariadb
mariadb:
image: mariadb
restart: on-failure
ports:
- "127.0.0.1:3306:3306"
volumes:
- ./www/wp_DB:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_PASS}
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: on-failure
environment:
- PMA_HOST=mariadb
links:
- mariadb
ports:
- "8888:80"
wordmove:
build:
context: ./docker-images/wordmove/
command: 'echo "Hello From Wordmove"'
volumes:
- ./www/wp_files/:/www
# Movefile
- ./configs/wordmove/:/home/
# For ssh
- ${HOME}/.ssh/:/root/.ssh:ro
- /etc/passwd:/etc/passwd:ro
links:
- mariadb