-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 967 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
version: '3.9'
services:
db:
container_name: db
image: mysql:8.0.27
command: ["--default-authentication-plugin=mysql_native_password"]
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: fashionette
MYSQL_USER: fashionette
MYSQL_PASSWORD: fashionette
volumes:
- ./db:/var/lib/mysql
php:
container_name: php-fpm
build:
context: ./php-fpm
ports:
- "9000:9001"
volumes:
- ./application:/var/www/application:cached
- ./logs/application:/var/www/application/var/log:cached
depends_on:
- db
nginx:
container_name: nginx
build:
context: ./nginx
args:
NGINX_SERVER_NAME: json-api.local
ports:
- "80:80"
depends_on:
- php
environment:
- NGINX_SERVER_NAME=json-api.local
volumes:
- ./logs/nginx:/var/log/nginx:cached
- ./application:/var/www/application:cached