forked from cydrobolt/polr
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
44 lines (42 loc) · 1023 Bytes
/
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
version: '2.1'
services:
main:
image: sahil87/polr:v1.2
ports:
- "80:80"
stdin_open: true
tty: true
environment:
- APP_ADDRESS=localhost
- APP_STYLESHEET=//maxcdn.bootstrapcdn.com/bootswatch/3.3.7/united/bootstrap.min.css
depends_on:
mysql:
condition: service_healthy
myadmin:
condition: service_started
mysql:
image: mysql:5.7
volumes:
- ./storage/db:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_USER=polr
- MYSQL_PASSWORD=polr
- MYSQL_DATABASE=polr
healthcheck:
test: ["CMD-SHELL", "test `echo 'SELECT 1' | mysql -hmysql -upolr -ppolr --silent` = '1'"]
interval: 10s
timeout: 5s
retries: 5
myadmin:
image: phpmyadmin/phpmyadmin
restart: always
ports:
- "8080:80"
depends_on:
- mysql
environment:
- PMA_ABSOLUTE_URI=http://localhost:8080
- PMA_HOST=mysql
- MYSQL_ROOT_PASSWORD=secret