-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 1.42 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
version: '3'
services:
web:
build:
context: .
image: herokuphp
command: 'bash -c "source .env && tools/start-web.sh"'
working_dir: /app/user
ports:
- 8080:8080
volumes:
- .:/app/user:rw,cached
environment:
- VIRTUAL_HOST=wordpress.local
depends_on:
- mysql
- redis
shell:
build:
context: .
image: herokuphp
command: 'bash -c "source .env && bash"'
working_dir: /app/user
volumes:
- .:/app/user:rw,cached
depends_on:
- mysql
- redis
ci:
build:
context: .
image: herokuphp
command: bash tools/ci.sh
working_dir: /app/user
volumes:
- .:/app/user:rw,cached
depends_on:
- mysql
- redis
##
# To use adminer, navigate to http://localhost:8081
#
# Use the following mysql credentials:
#
# Host: mysql
# User: wordpress
# Password: password
# Database: wordpress
##
adminer:
image: clue/adminer:latest
ports:
- 8081:80
depends_on:
- mysql
mysql:
image: mysql:5.7
command: mysqld --sql_mode=""
ports:
- '${DATABASE_PORT:-5432}:3306'
volumes:
- mysqldata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
redis:
image: redis:3.2
# ports:
# - '${REDIS_PORT:-6379}:6379'
volumes:
mysqldata: {}