-
Notifications
You must be signed in to change notification settings - Fork 357
/
docker-compose.yml
57 lines (57 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3"
networks:
backend:
volumes:
app_volume:
db_volume:
services:
db:
image: mysql:5.7
volumes:
- db_volume:/var/lib/mysql
restart: always
ports:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: 111111
MYSQL_DATABASE: wizard
MYSQL_USER: wizard
MYSQL_PASSWORD: 111111
networks:
- backend
php-fpm:
build:
context: ./docker-compose/php-fpm
dockerfile: Dockerfile
volumes:
- app_volume:/data/
- .:/webroot/wizard
ports:
- "9000"
networks:
- backend
depends_on:
- db
nginx:
image: nginx
volumes:
- app_volume:/data/www
- .:/webroot/wizard
- ./docker-compose/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8080:80"
networks:
- backend
depends_on:
- php-fpm
php:
build:
context: ./docker-compose/php
dockerfile: Dockerfile
volumes:
- app_volume:/data/
- .:/webroot/wizard
networks:
- backend
depends_on:
- db