-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml.example
52 lines (47 loc) · 1.29 KB
/
docker-compose.yml.example
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
version: '3.5'
services:
nginx:
container_name: ${PROJECT_NAME}_nginx
build: .provision/nginx
volumes:
- ./${PROJECT_FOLDER}:/var/www
- .provision/nginx/conf.d/vhost.conf:/etc/nginx/conf.d/default.conf
# - .provision/nginx/.htpasswd:/etc/nginx/.htpasswd
ports:
- "8989:80"
links:
- php-fpm
php-fpm:
container_name: ${PROJECT_NAME}_php-fpm
build: .provision/php-fpm
volumes:
- ./${PROJECT_FOLDER}:/var/www
links:
- mysql
- redis
mysql:
container_name: ${PROJECT_NAME}_mysql
image: mysql:8.0
volumes:
- db_mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE: ${PROJECT_NAME}
MYSQL_USER: ${PROJECT_NAME}
MYSQL_PASSWORD:
ports:
- "13306:3306"
command: mysqld --sql_mode=""
redis:
container_name: ${PROJECT_NAME}_redis
image: redis:alpine
node:
container_name: ${PROJECT_NAME}_node
image: node:latest
volumes:
- ./${PROJECT_FOLDER}:/home/node
user: node
working_dir: /home/node
volumes:
db_mysql:
name: ${PROJECT_NAME}