forked from opencrmitalia-official/myddleware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (38 loc) · 1 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: '2'
services:
myddleware:
build: .
ports:
- ${myddleware_port}:80
environment:
- MYSQL_HOST=mysql
- MYSQL_DATABASE=myddleware
- MYSQL_ROOT_PASSWORD=secret
volumes:
- ./:/var/www/html:cached
- ./app/config/parameters.yml.docker:/var/www/html/app/config/parameters.yml
- ./app/config/public/parameters_smtp.yml.docker:/var/www/html/app/config/public/parameters_smtp.yml
- ./app/config/public/parameters_public.yml.docker:/var/www/html/app/config/public/parameters_public.yml
- ./.temp/.composer:/root/.composer:cached
links:
- mysql
- phpmyadmin
mysql:
image: mysql:5.5
environment:
- MYSQL_DATABASE=myddleware
- MYSQL_ROOT_PASSWORD=secret
volumes:
- mysql:/var/lib/mysql:rw
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- ${phpmyadmin_port}:80
environment:
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=secret
links:
- mysql
volumes:
mysql: