-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.35 KB
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
version: '2'
services:
portainer:
image: portainer/portainer
restart: always
container_name: container_portainer
ports:
- "9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer:/data
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
build: ./nginx_proxy
container_name: container_nginx_proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx_proxy/default.conf:/etc/nginx/vhost.d/default.conf:ro
links:
- portainer
- web
web:
container_name: container_apache
restart: always
image: devopensourceteam/php:latest
volumes:
- ./sites-available:/etc/apache2/sites-enabled
- ../../devopensource/htdocs:/var/www/html/:cached # Change "../../devopensource/htdocs" and put your web directory
- ./apache/php.ini:/usr/local/etc/php/conf.d/zz-magento.ini
ports:
- "80"
links:
- mysql
mysql:
container_name: container_mysql
restart: always
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: 'zend' # TODO: Change this
MYSQL_USER: 'root'
MYSQL_PASS: 'zend'
volumes:
- "./mysql:/var/lib/mysql:cached"
- "./mysql/my.cnf:/etc/mysql/my.cnf"
ports:
- "3306:3306"