-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·50 lines (48 loc) · 994 Bytes
/
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
44
45
46
47
48
49
50
version: '2'
services:
data:
container_name: lemp_data
build: ./data
volumes:
- .:/www
command: /var/local/entrypoint.sh
db:
container_name: lemp_mysql
build: ./mysql
ports:
- "3309:3309"
volumes:
- .docker_data/mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: lemp
MYSQL_USER: lemp
MYSQL_PASSWORD: lemp
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
php:
container_name: lemp_php
build: ./php
volumes_from:
- data
links:
- db
environment:
CACHE_DIR: /www/var/cache
LOG_DIR: /www/var/logs
SESSION_DIR: /www/var/sessions
MYSQL_PASSWORD: lemp
MYSQL_DATABASE: lemp
MYSQL_USER: lemp
MYSQL_HOST: lemp_mysql
command: /var/local/entrypoint.sh
nginx:
container_name: lemp_nginx
build:
context: ./nginx
ports:
- "8001:80"
links:
- php
volumes_from:
- php
- data