-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 878 Bytes
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
version: '3'
services:
nginx:
container_name: nginx
build:
context: nginx
image: nginx
ports:
- "8080:8080" # site1
- "8081:8081" # site2
volumes:
- "./etc/nginx_conf:/etc/nginx/conf.d"
- "./www:/www"
- "./logs/www:/var/log/nginx"
links:
- mysql
- php
- memcached
php:
container_name: php
build:
context: php
volumes:
- "./www:/www"
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
links:
- memcached
mysql:
container_name: mysql
build:
context: mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=root
command: mysqld --sql-mode=""
ports:
- "3306:3306"
volumes:
- ./etc/dbScripts:/docker-entrypoint-initdb.d/
memcached:
container_name: memcached
image: memcached