-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (43 loc) · 1020 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
41
42
43
44
version: '3'
services:
nginx:
build:
context: ./docker
dockerfile: nginx.docker
volumes:
- ./:/var/www
depends_on:
- php-cli
- php-fpm
ports:
- "8084:80"
php-fpm:
build:
context: ./docker
dockerfile: php-fpm.docker
volumes:
- ./:/var/www
depends_on:
- mysql
php-cli:
build:
context: ./docker
dockerfile: php-cli.docker
volumes:
- ./:/var/www
depends_on:
- mysql
working_dir: /var/www
tty: true
mysql:
platform: linux/x86_64
image: mysql:8.0.25
volumes:
- ./storage/docker/mysql:/var/lib/mysql
environment:
- "MYSQL_ROOT_PASSWORD=secret"
- "MYSQL_USER=app"
- "MYSQL_PASSWORD=secret"
- "MYSQL_DATABASE=app"
ports:
- "33064:3306"