mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-14 23:47:48 +00:00
Remove extra containers
This commit is contained in:
41
compose.yaml
41
compose.yaml
@@ -18,6 +18,7 @@ services:
|
||||
build: .
|
||||
ports:
|
||||
- 3000:3000
|
||||
- 3035:3035
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
- gems:/bundles
|
||||
@@ -27,51 +28,19 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
- webpack
|
||||
environment:
|
||||
DOCKER: true
|
||||
CHROME_URL: http://browserless:4000
|
||||
OFN_DB_HOST: db
|
||||
OFN_REDIS_URL: redis://redis/
|
||||
OFN_REDIS_JOBS_URL: redis://redis
|
||||
OFN_REDIS_TEST_URL: redis://redis/3
|
||||
WEBPACKER_DEV_SERVER_HOST: webpack
|
||||
command: >
|
||||
bash -c "wait-for-it -t 30 db:5432 &&
|
||||
rm -f tmp/pids/server.pid &&
|
||||
bash -c "rm -f tmp/pids/server.pid &&
|
||||
(bundle check || bundle install) &&
|
||||
bundle exec rake db:create &&
|
||||
yarn install &&
|
||||
bundle exec rails s -p 3000 -b '0.0.0.0'"
|
||||
webpack:
|
||||
build: .
|
||||
command: ./bin/webpack-dev-server
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
- gems:/bundles
|
||||
ports:
|
||||
- '3035:3035'
|
||||
environment:
|
||||
NODE_ENV: development
|
||||
RAILS_ENV: development
|
||||
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
|
||||
worker:
|
||||
tty: true
|
||||
stdin_open: true
|
||||
build: .
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
- gems:/bundles
|
||||
- ./config/database.yml:/usr/src/app/config/database.yml
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
environment:
|
||||
OFN_DB_HOST: db
|
||||
OFN_REDIS_URL: redis://redis
|
||||
OFN_REDIS_JOBS_URL: redis://redis
|
||||
command: >
|
||||
bash -c "wait-for-it -t 30 db:5432 &&
|
||||
(bundle check || bundle install) &&
|
||||
bundle exec sidekiq -q mailers -q default"
|
||||
tail -f log/development.log"
|
||||
volumes:
|
||||
gems:
|
||||
postgres:
|
||||
|
||||
Reference in New Issue
Block a user