forked from mixerapi/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.14 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
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
# for development purposes only:
#- ./../mixerapi-dev/:/srv/mixerapi-dev
#- ./../../cakephp-swagger-bake/:/srv/cakephp-swagger-bake
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
# for development purposes only:
#- ./../mixerapi-dev/:/srv/mixerapi-dev
#- ./../../cakephp-swagger-bake/:/srv/cakephp-swagger-bake
ports:
- "8080:80"
depends_on:
- php
volumes:
data: