-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
50 lines (47 loc) · 1.4 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
###############################################################################
# Generated on phpdocker.io #
###############################################################################
version: '3.1'
services:
myapp-mailhog:
image: 'mailhog/mailhog:latest'
container_name: myapp-mailhog
ports:
- "8125:8025"
myapp-mysql:
image: 'mysql:8.0'
container_name: myapp-mysql
working_dir: /var/www/myapp
volumes:
- ../mysql:/var/lib/mysql
- ../mysql-files:/var/lib/mysql-files
- ../cakephp:/var/www/myapp
- ./mysql/my.cnf:/etc/mysql/my.cnf
ports:
- "8106:3306"
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
myapp-nginx:
image: 'nginx:alpine'
container_name: myapp-nginx
working_dir: /var/www/myapp
volumes:
- ../cakephp:/var/www/myapp
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8180:80"
links:
- myapp-php-fpm
myapp-php-fpm:
build: ./php-fpm
container_name: myapp-php-fpm
working_dir: /var/www/myapp
volumes:
- ../cakephp:/var/www/myapp
- ./php-fpm/php-ini-overrides.ini:/etc/php/8.1/fpm/conf.d/99-overrides.ini
links:
- myapp-mailhog
- myapp-mysql