-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·46 lines (43 loc) · 1.05 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
version: '3'
services:
web:
build:
context: './config/docker/php'
dockerfile: './Dockerfile'
ports:
- '8080:80'
- '445:443'
volumes:
- './server/public:/var/www/html/public'
- './server/private:/var/www/html/private'
environment:
ENVIRONMENT: dev
DB_DSN: mysql:host=database;port=3306;dbname=craft
# DB_SERVER: database depricated
DB_USER: craft
DB_PASSWORD: craft
# DB_DATABASE: craft depricated
DB_TABLE_PREFIX: craft_
APACHE_DOCUMENT_ROOT: '/var/www/html/public'
phpmyadmin:
depends_on:
- database
image: phpmyadmin/phpmyadmin
ports:
- '8081:80'
environment:
PMA_HOST: database
MYSQL_ROOT_PASSWORD: password
links:
- database:database
database:
image: mariadb
ports:
- '8082:3306'
volumes:
- ./server/database:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: craft
MYSQL_USER: craft
MYSQL_PASSWORD: craft