-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 940 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
version: '2'
services:
nginx:
image: weblogix/nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./docker-files/nginx/ssl:/etc/ssl
- ./docker-files/nginx/conf.d:/etc/nginx/conf.d
- ./data/www/default:/var/www/html/default
- ./data/www/vhosts:/var/www/html/vhosts
php:
image: weblogix/php-fpm
ports:
- "9000:9000"
volumes:
- ./data/www/default:/var/www/html/default
- ./data/www/vhosts:/var/www/html/vhosts
mariadb:
image: mariadb:latest
command: mysqld --innodb-buffer-pool-size=20M
volumes:
- "./data/db/mariadb:/var/lib/mysql:rw"
environment:
- "MYSQL_DATABASE=my_db_name"
- "MYSQL_USER=my_db_user"
- "MYSQL_PASSWORD=my_db_user_passwd"
- "MYSQL_ROOT_PASSWORD=my_db_root_passwd"
ports:
- "3306:3306"
mailcatcher:
image: weblogix/mailcatcher:latest
ports:
- "1025:1025"
- "1080:1080"