forked from maicoqb/docker-lemp
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (36 loc) · 954 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
36
37
38
39
40
version: "3"
services:
nginx:
image: nginx:1.11.13-alpine
ports:
- "${SERVER_PORT}:80"
depends_on:
- phpfpm
- db
volumes:
- ./server/logs/:/var/log/nginx/
- ./server/app.conf:/etc/nginx/conf.d/default.conf
- ./app:/app
phpfpm:
#image: php:${PHP_IMAGE}
build:
context: ./php
dockerfile: Dockerfile-php56-fpm
ports:
- "9000:9000"
volumes:
- ./app:/app
db:
image: mysql/mysql-server:5.7
ports:
- '${MYSQL_PORT}:3306'
volumes:
- db-data:/var/lib/mysql
environment:
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
volumes:
db-data:
driver: local