parent
85f106f45c
commit
c048c7b58d
@ -0,0 +1,31 @@ |
||||
db: |
||||
image: mysql |
||||
volumes: |
||||
- ~/.docker-volumes/openproject/db:/var/lib/mysql |
||||
expose: |
||||
- "3306" |
||||
environment: |
||||
- MYSQL_ALLOW_EMPTY_PASSWORD=true |
||||
|
||||
worker: &ruby |
||||
build: . |
||||
volumes: |
||||
- .:/usr/src/app |
||||
links: |
||||
- db |
||||
environment: |
||||
- "DATABASE_URL=mysql2://root@db/openproject_development?encoding=utf8" |
||||
- "RAILS_CACHE_STORE=file_store" |
||||
command: "./docker/worker" |
||||
|
||||
web: |
||||
<<: *ruby |
||||
ports: |
||||
- "8080:8080" |
||||
command: "./docker/web" |
||||
|
||||
frontend: |
||||
build: . |
||||
volumes: |
||||
- .:/usr/src/app |
||||
command: "./docker/webpack-watch" |
@ -0,0 +1,8 @@ |
||||
#!/bin/bash |
||||
|
||||
set -e |
||||
|
||||
npm install |
||||
cd frontend |
||||
|
||||
exec $(npm bin)/webpack --colors --watch --progress |
Loading…
Reference in new issue