-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (47 loc) · 1.04 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
version: '2'
services:
nginx:
image: packageman/nginx:1.10.1
hostname: nginx
ports:
- "80:80"
volumes:
- ../src:/src
- ./nginx/conf:/etc/nginx/conf.d
links:
- php
- redis
- mongodb
restart: always
php:
image: packageman/php-supervisor-node-sass:1.0.1
hostname: php
volumes:
- /etc/nginx/site-enabled:/etc/nginx/site-enabled
- ../src:/src
- ../deploy:/deploy
- ./php-supervisor-node-sass/supervisor/conf:/etc/supervisor/conf.d
- ./php-supervisor-node-sass/bin:/root/bin
env_file: ./php-supervisor-node-sass/envfiles/stage.env
restart: always
redis:
image: packageman/redis:3.0.7
hostname: redis
ports:
- "6379:6379"
volumes:
- redis-data:/var/lib/redis
restart: always
mongodb:
image: packageman/mongodb:3.2.7
hostname: mongodb
ports:
- "27017:27017"
volumes:
- mongodb-data:/var/lib/mongodb
restart: always
volumes:
mongodb-data:
driver: local
redis-data:
driver: local