forked from baserproject/ucmitz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 1.3 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
51
52
version: '3'
# volumes:
# db-volume: # windowsの場合はコメントを外す
services:
bc5-db:
container_name: bc5-db
image: mysql:5.7
volumes:
- ./volumes/mysql:/var/lib/mysql
# - db-volume:/var/lib/mysql # windowsの場合はコメントを外し、上の行をコメントアウトする
- ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "basercms"
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --innodb-use-native-aio=0
bc5-php:
container_name: bc5-php
image: baserproject/basercms:5-php7.3
volumes:
- ../:/var/www/html:cached
environment:
PHP_IDE_CONFIG: "serverName=localhost"
COMPOSER_ALLOW_SUPERUSER: 1
ports:
- "80:80"
- "443:443"
depends_on:
- bc5-db
bc5-smtp:
container_name: bc5-smtp
image: schickling/mailcatcher
ports:
- "1080:1080"
- "1025:1025"
bc5-pma:
container_name: bc5-pma
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_HOST=bc5-db
- PMA_USER=root
- PMA_PASSWORD=root
links:
- bc5-db
ports:
- 8080:80
volumes:
- ./phpmyadmin/sessions:/sessions