generated from cnizzardini/cakephp-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 868 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.4'
services:
php:
build:
context: .
target: cakephp_php
env_file:
- ./.docker/php.env.development
environment:
PHP_IDE_CONFIG: "serverName=localhost"
volumes:
- ./app:/srv/app
- ./.docker/php/development:/usr/local/etc/php
- ~/.ssh/:/home/root/.ssh
depends_on:
- db
db:
image: library/mysql:8
command: mysqld --sql_mode="" --default-authentication-plugin=mysql_native_password
restart: always
env_file:
- ./.docker/mysql.env.development
volumes:
- data:/var/lib/mysql
ports:
- "3307:3306"
web:
image: nginx:1.19-alpine
working_dir: /srv/app/
environment:
TERM: Linux
volumes:
- ./app:/srv/app
- ./.docker/nginx:/etc/nginx/conf.d
ports:
- "8080:80"
depends_on:
- php
volumes:
data: