-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·63 lines (58 loc) · 1.81 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·63 lines (58 loc) · 1.81 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
54
55
56
57
58
59
60
61
62
63
version: '3'
services:
app:
build: ./build/php
hostname: app
container_name: app
restart: always
environment:
NGINX_ERROR_LOG_LEVEL: 'notice'
ports:
- "80:80"
- "443:443"
external_links:
- mysql
- memcached
volumes:
- ~/Sites:/var/www/html
- ./config/php/php.ini:/etc/php/7.0/fpm/php.ini:ro
- ./config/php/php.ini:/usr/local/etc/php/php.ini:ro
- ./config/php/php-fpm.conf:/etc/php/7.0/fpm/php-fpm.conf:ro
- ./config/php/www.conf:/etc/php/7.0/fpm/pool.d/www.conf:ro
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./config/nginx/mime.types:/etc/nginx/mime.types:ro
- ./config/nginx/locations.conf:/etc/nginx/locations.conf:ro
- ./vhosts/:/etc/nginx/sites-enabled/:ro
working_dir: "/var/www/html"
mysql:
image: mysql:5.7
hostname: mysql
container_name: mysql
restart: always
ports:
- "3306:3306"
volumes:
- ./data/mysql:/var/lib/mysql
- ./config/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
environment:
MYSQL_ROOT_PASSWORD: "root"
memcached:
image: memcached
hostname: memcached
container_name: memcached
restart: always
environment:
MEMCACHED_MEMORY: "128"
ports:
- "11211:11211"
portainer:
image: portainer/portainer
hostname: portainer
container_name: portainer
restart: always
command: --no-auth --no-analytics
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/portainer:/data
ports:
- "9000:9000"