forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 991 Bytes
/
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:
php:
build:
context: ./docker/php
environment:
- DB_DRIVER=mysql
- DB_HOST=mysql
- DB_PORT=3306
- DB_NAME=userfrosting
- DB_USER=userfrosting
- DB_PASSWORD=password
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:
- 8571:3306
volumes:
- userfrosting-db:/var/lib/mysql
composer:
image: composer/composer
volumes_from:
- php
working_dir: /app
command: -V
node:
image: node:alpine
build:
context: ./docker/node
volumes_from:
- php
working_dir: /app/build
command: npm run uf-assets-install
volumes:
userfrosting-db: