-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 865 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 865 Bytes
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
version: "3.3"
services:
php:
image: "php"
volumes:
- ./:/var/www/html
web:
image: nginx:1.17
working_dir: /var/www/html
volumes:
- ./:/var/www/html
- ./docker/nginx/nginx_template_local.conf:/etc/nginx/conf.d/default.conf
ports:
- "8000:80"
db:
container_name: mysql
image: mysql:8
ports:
- 3306:3306
volumes:
- ./mysql/data:/var/lib/mysql
- ./draft.sql:/docker-entrypoint-initdb.d/draft.sql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
# Node Service
node:
image: "node"
volumes:
- ./:/assets