-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (53 loc) · 1.1 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
50
51
52
53
54
55
56
57
58
59
version: '3'
services:
php:
container_name: ${PREFIX}_php
image: ${PREFIX}_php
build: ./php
fpm:
container_name: ${PREFIX}_fpm
image: ${PREFIX}_fpm
build: ./fpm
depends_on:
- php
restart: always
expose:
- 9000
volumes:
- ${SOURCE_DIR}:${TARGET_DIR}
composer:
container_name: ${PREFIX}_composer
image: ${PREFIX}_composer
build: ./composer
depends_on:
- php
restart: always
volumes:
- ${SOURCE_DIR}:${TARGET_DIR}
stdin_open: true
tty: true
nginx:
container_name: ${PREFIX}_nginx
image: ${PREFIX}_nginx
build: ./nginx
restart: always
ports:
- "80:80"
volumes:
- ${SOURCE_DIR}:${TARGET_DIR}
- ./nginx/sites:/etc/nginx/conf.d
links:
- fpm
stdin_open: true
tty: true
mysql:
image: mysql:5.7
container_name: ${PREFIX}_mysql
ports:
- "3306:3306"
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_USER: root
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: magento