forked from servdhost/demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (65 loc) · 1.68 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.5'
services:
nginx:
build:
context: .
dockerfile: ./docker-config/nginx/Dockerfile
ports:
- 80:80
volumes:
- cpresources:/var/www/html/web/cpresources
- ./src/web:/var/www/html/web
php:
build:
context: .
dockerfile: ./docker-config/php/Dockerfile
expose:
- 9000
volumes:
- cpresources:/var/www/html/web/cpresources
- ./src/composer.json:/var/www/html/composer.json
- ./src/composer.lock:/var/www/html/composer.lock
- ./src/config:/var/www/html/config
- ./src/modules:/var/www/html/modules
- ./src/templates:/var/www/html/templates
- ./src/web:/var/www/html/web
environment:
ENVIRONMENT: ${ENVIRONMENT}
DB_DRIVER: mysql
DB_SERVER: database
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_SCHEMA: public
DB_TABLE_PREFIX:
SECURITY_KEY: ${CRAFT_SECURITY_KEY}
ALLOW_ADMIN_CHANGES: 'true'
database:
image: mariadb:10.3
volumes:
- db-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8085:80
environment:
PMA_HOST: database
buildchain:
build:
context: .
dockerfile: ./docker-config/buildchain/Dockerfile
volumes:
- ./docker-config/buildchain/package.json:/project/package.json
- ./src:/project/src
ports:
- 3000:3000
- 3001:3001
command: [./node_modules/.bin/gulp, watch]
volumes:
db-data:
cpresources: