-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
42 lines (39 loc) · 1.08 KB
/
docker-compose.yaml
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
version: '3'
services:
mariadb:
image: mariadb:10.3
container_name: mariadb-stech
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: db
MYSQL_USER: root
MYSQL_PASSWORD: root
TZ: 'Asia/Tokyo'
volumes:
- ./database/data:/var/lib/mysql
- ./database/my.cnf:/etc/mysql/conf.d/my.cnf
- ./database/initdb.d:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin-stech
environment:
# - PMA_ARBITRARY=1
# - PMA_HOSTS=mariadb
# - PMA_USER=root
# - PMA_PASSWORD=root
# - PMA_PORT=3306
# - PMA_DATABASE=db
- PMA_HOSTS=r98du2bxwqkq3shg.cbetxkdyhwsb.us-east-1.rds.amazonaws.com
- PMA_USER=fcxjqrrnpl2zeqod
- PMA_PASSWORD=uw925vz81qi2lo28
- PMA_PORT=3306
- PMA_DATABASE=u5dgnkfxds9253ou
depends_on:
- mariadb
ports:
- "3000:80"
volumes:
- ./docker/phpmyadmin/sessions:/sessions