-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·37 lines (34 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
executable file
·37 lines (34 loc) · 1.02 KB
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
version: "3.6"
services:
mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-nopassword}
MYSQL_DATABASE: ${MYSQL_DATABASE:-app}
volumes:
- ./docker/mysql/data:/var/lib/mysql:rw
ports:
- '3307:3306'
php:
depends_on:
- mysql
build:
context: .
args:
PHP_VERSION: ${PHP_VERSION:-8.2}
COMPOSER_VERSION: ${COMPOSER_VERSION:-latest}
working_dir: /app
entrypoint: sh ./docker/php/entrypoint.sh
volumes:
- .:/app:rw
- ./docker/php/config/php.ini:/usr/local/etc/php/php.ini:rw
- ./docker/php/config/php-cli.ini:/usr/local/etc/php/php-cli.ini:rw
nginx:
depends_on:
- php
image: nginx:latest
volumes:
- ./public:/app/public
- ./docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
ports:
- '81:80'