-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.16 KB
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
version: '2'
services:
jsbin-php:
depends_on:
- db
links:
- db
build:
context: ./
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
#volumes:
# - ./code/www:/var/www/html
environment:
STAGE: DEV
DB_PASSWORD: %yPq#S5g9}JC)53m
DB_HOST: db
DB_USER: root
DB_NAME: jsbin
hostname: jbin.local
container_name: jsbin-php
db:
image: mysql:5.7
volumes:
- "./config/db/sql:/docker-entrypoint-initdb.d"
- "./config/db/mysql/innodb.cnf:/etc/mysql/conf.d/innodb.cnf"
- "./config/db/mysql/utf-8.cnf:/etc/mysql/conf.d/utf-8.cnf"
- "./config/db/mysql/timezone.cnf:/etc/mysql/conf.d/timezone.cnf"
restart: always
environment:
MYSQL_ROOT_PASSWORD: %yPq#S5g9}JC)53m
MYSQL_ROOT_HOST: '%'
MYSQL_USER: db-user
MYSQL_PASSWORD: >unB7*.m)\4BU*h}
container_name: MySQL
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8080:80"
restart: always
links:
- db
environment:
PMA_ARBITRARY: 1
PHP_UPLOAD_MAX_FILESIZE: 1G
PHP_MAX_INPUT_VARS: 5000
container_name: phpMyAdmin