-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.28 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
53
54
55
version: '2'
services:
nginx:
build:
context: .
dockerfile: ./.docker-config/nginx/Dockerfile
ports:
- 80:80
volumes:
- ./src/web:/var/www/html/web
php:
build:
context: .
dockerfile: ./.docker-config/php/Dockerfile
expose:
- 9000
volumes:
- ./src/config:/var/www/html/config
- ./src/templates:/var/www/html/templates
- ./src/modules:/var/www/html/modules
- ./src/web:/var/www/html/web
- ./src/composer.json:/var/www/html/composer.json
environment:
ENVIRONMENT: dev
DB_DRIVER: mysql
DB_SERVER: database
DB_USER: project
DB_PASSWORD: project
DB_DATABASE: project
DB_TABLE_PREFIX: craft_
SITE_URL: http://localhost
SECURITY_KEY: asdfasdfasdfasdfasdf
database:
image: mariadb:10.3
volumes:
- db-data:/var/lib/mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: project
MYSQL_USER: project
MYSQL_PASSWORD: project
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8085:80
environment:
PMA_HOST: database
volumes:
db-data: