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