forked from cross-solution/YAWIK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1.06 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
version: "3"
services:
nginx:
image: nginx:alpine
container_name: ${DOCKER_CONTAINER_NAME}.nginx
volumes:
- ./etc/docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/yawik
ports:
- "8080:80"
links:
- php
- mongo
environment:
- UMASK="0000"
php:
container_name: ${DOCKER_CONTAINER_NAME}.php
env_file:
- .env
build:
context: etc/docker/php
args:
TIMEZONE: ${TIMEZONE}
volumes:
- ./:/var/www/yawik
links:
- mongo
environment:
- UMASK=0000
mongo:
image: mongo:3.4.10
container_name: ${DOCKER_CONTAINER_NAME}.mongo
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./etc/docker/mongodb/data:/data/db
ports:
- "27017:27017"
command: mongod --smallfiles --logpath=/dev/null # --quiet