-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 1.35 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
version: '3'
services:
apache:
build: './docker/apache/'
volumes:
- ./:/var/www/
- ./docker/apache/sites-enabled/:/etc/apache2/sites-enabled/
- ./docker/apache/ssl/:/usr/local/apache2/ssl/
ports:
- '80:80'
depends_on:
- db
db:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: dustcrm
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- ./db:/var/lib/mysql
command:
mysqld --innodb-flush-method=littlesync --innodb-use-native-aio=OFF --log_bin=ON #Temporary workaround, because mariadb volume dont work proper way in win10 docker without this parameters.
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOSTS: db, test_db
ports:
- 8080:80
depends_on:
- db
redis:
image: redis:latest
#Tests section:
test_db:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: dustcrm_basic_tests
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- ./test_db:/var/lib/mysql
command:
mysqld --innodb-flush-method=littlesync --innodb-use-native-aio=OFF --log_bin=ON #Temporary workaround, because mariadb volume dont work proper way in win10 docker without this parameters.