-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
49 lines (49 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
version: '2'
services:
web:
build: ./docker/nginx/
ports:
- 80:80
volumes_from:
- app
php:
build:
context: ./docker/php7.0-fpm
dockerfile: ./Dockerfile
expose:
- 9000
volumes_from:
- app
working_dir: /var/www/unfinished
app:
build:
context: ./docker/app
dockerfile: ./Dockerfile
volumes:
- ./application:/var/www/unfinished
command: "true"
mysql:
image: mysql:latest
volumes_from:
- data
ports:
- 3307:3306
environment:
MYSQL_ROOT_PASSWORD: 12345
MYSQL_DATABASE: unfinished
MYSQL_USER: unfinished
MYSQL_PASSWORD: 12345
data:
image: mysql:latest
volumes:
- ./docker/mysql_data:/var/lib/mysql
command: "true"
memcached:
image: memcached:latest
expose:
- 11211
command: "memcached"
redis:
image: redis
expose:
- 6379