aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/docker-compose.yml
blob: 932a1c0f6218ade7480ae086f33707d7d31cf0fe (plain) (blame)
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
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: