diff options
Diffstat (limited to 'main/docker-compose.yml')
-rwxr-xr-x | main/docker-compose.yml | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/main/docker-compose.yml b/main/docker-compose.yml new file mode 100755 index 0000000..932a1c0 --- /dev/null +++ b/main/docker-compose.yml @@ -0,0 +1,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: + |