forked from nanoninja/docker-nginx-php-mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (35 loc) · 888 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
version: '2'
services:
web:
image: nginx:latest
ports:
- "8000:80"
- "3000:443"
restart: always
volumes:
- "./etc/nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "./etc/ssl:/etc/ssl"
- "./web:/web"
depends_on:
- "php"
- "mongodb"
php:
image: nanoninja/php-fpm
restart: always
volumes:
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- ./web:/web
composer:
image: composer/composer
volumes:
- ./web/app:/app
command: install
mongodb:
image: mongo
container_name: mongo
restart: always
volumes:
- ./data/db/mongo:/data/db
ports:
- "27020:27017"
command: --storageEngine wiredTiger