-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 1.08 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
version: '3'
services:
webserver:
build:
context: .
ports:
- "8080:80"
- "4430:443"
links:
- database
volumes:
- ./public_html:/var/www/html
- ./:/var/www
environment:
PMA_PORT: 8081
database:
image: mysql:latest
ports:
- "127.0.0.1:9906:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${DEBUG_DB_NAME}
MYSQL_USER: ${DEBUG_DB_USER}
MYSQL_PASSWORD: ${DEBUG_DB_PASS}
phpmyadmin:
image: phpmyadmin
links:
- database
environment:
PMA_HOST: database
PMA_PORT: 3306
PMA_USER: root
PMA_PASSWORD: root
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: ${DEBUG_DB_USER}
MYSQL_PASSWORD: ${DEBUG_DB_PASS}
ports:
- '8081:80'
seeder:
build:
context: .
depends_on:
- database
command: sh -c "sleep 18 && vendor/bin/phinx migrate -e development && vendor/bin/phinx seed:run -e development"
volumes:
- ./:/var/www/html/
stdin_open: true
tty: true