forked from rpiambulance/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.02 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
version: '3'
services:
web:
build:
context: .
args:
build_env: production
ports:
- "8080:80"
volumes:
- .admin_config.php:/var/www/html/.admin_config.php
- .db_config.php:/var/www/html/.db_config.php
- .form_config.php:/var/www/html/.form_config.php
depends_on:
- mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- "8081:80"
# phpmyadmin requires that the mysql container be linked as "db"
links:
- mysql:db
depends_on:
- mysql
logging:
driver: none
mysql:
image: mysql:5.7
ports:
- "33060:3306"
volumes:
- mysql-volume:/var/lib/mysql
- .docker/mysql/schema.sql:/docker-entrypoint-initdb.d/00-schema.sql
- .docker/mysql/default.sql:/docker-entrypoint-initdb.d/01-default.sql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:?MYSQL_ROOT_PASSWORD}
MYSQL_USER: ${MYSQL_USER:?MYSQL_USER}
MYSQL_PASS: ${MYSQL_PASS:?MYSQL_PASS}
volumes:
mysql-volume: