Remove extra containers

This commit is contained in:
François Turbelin
2025-01-19 21:00:28 +01:00
parent 39825a9ecb
commit 2acde5423d

View File

@@ -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: