forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (56 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
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '2'
services:
php:
build:
context: ./docker/php
environment:
- DB_DRIVER=mysql
- DB_HOST=mysql
- DB_PORT=3306
- DB_NAME=userfrosting
- DB_USER=userfrosting
- DB_PASSWORD=password
working_dir: /app/app
volumes:
- .:/app
links:
- mysql
nginx:
build:
context: ./docker/nginx
ports:
- 8570:80
volumes:
- .:/app
links:
- php
mysql:
image: mysql:5.7
environment:
- MYSQL_DATABASE=userfrosting
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=userfrosting
- MYSQL_PASSWORD=password
ports:
- 3306:3306
volumes:
- userfrosting-db:/var/lib/mysql
composer:
image: composer/composer
volumes_from:
- php
- mysql
working_dir: /app/app
links:
- mysql
command: update
node:
image: jujhars13/docker-node-npm-bower-gulp:latest
volumes_from:
- php
working_dir: /app/build
links:
- php
command: npm run uf-assets-install
volumes:
userfrosting-db: