2017-04-24 10:12:07 +02:00
|
|
|
version: '2'
|
2017-04-21 09:45:30 +02:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
container_name: scinote_db_development
|
2020-02-07 13:53:25 +01:00
|
|
|
image: postgres:11
|
2017-04-21 09:45:30 +02:00
|
|
|
volumes:
|
|
|
|
- scinote_development_postgres:/var/lib/postgresql/data
|
2019-09-09 16:46:51 +02:00
|
|
|
ports:
|
2019-10-17 13:30:14 +02:00
|
|
|
- "5432:5432"
|
2020-02-19 09:54:40 +01:00
|
|
|
environment:
|
2020-02-19 10:26:37 +01:00
|
|
|
- "POSTGRES_USER=postgres"
|
2020-02-19 09:54:40 +01:00
|
|
|
- "POSTGRES_PASSWORD=mysecretpassword"
|
2016-02-12 16:52:43 +01:00
|
|
|
|
2017-04-21 09:45:30 +02:00
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: scinote_web_development
|
|
|
|
container_name: scinote_web_development
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
command: >
|
|
|
|
bash -c "rm -f /usr/src/app/tmp/pids/server.pid &&
|
|
|
|
(bundle check || bundle install) &&
|
|
|
|
bundle exec rails s -b 0.0.0.0"
|
|
|
|
environment:
|
|
|
|
- RAILS_ENV=development
|
2018-11-22 11:51:58 +01:00
|
|
|
- WEBPACKER_DEV_SERVER_HOST=webpack
|
2017-04-21 09:45:30 +02:00
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app
|
2017-04-21 15:13:20 +02:00
|
|
|
- scinote_development_bundler:/usr/local/bundle/
|
2017-04-21 09:45:30 +02:00
|
|
|
- scinote_development_files:/usr/src/app/public/system
|
2019-07-05 16:56:05 +02:00
|
|
|
- scinote_development_storage:/usr/src/app/storage
|
2016-02-12 16:52:43 +01:00
|
|
|
|
2017-07-12 16:41:55 +02:00
|
|
|
webpack:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: scinote_web_development
|
|
|
|
container_name: scinote_webpack_development
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
|
|
|
ports:
|
2018-11-21 22:05:33 +01:00
|
|
|
- "3035:3035"
|
2017-07-12 16:41:55 +02:00
|
|
|
command: >
|
|
|
|
bash -c "./bin/webpack-dev-server"
|
|
|
|
environment:
|
|
|
|
- RAILS_ENV=development
|
2019-06-13 12:10:44 +02:00
|
|
|
- WORKER=true
|
2017-07-12 16:41:55 +02:00
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app
|
2018-11-22 11:51:58 +01:00
|
|
|
- scinote_development_bundler:/usr/local/bundle/
|
|
|
|
- scinote_development_files:/usr/src/app/public/system
|
2017-07-12 16:41:55 +02:00
|
|
|
|
2017-04-21 09:45:30 +02:00
|
|
|
volumes:
|
|
|
|
scinote_development_postgres:
|
|
|
|
scinote_development_bundler:
|
|
|
|
scinote_development_files:
|
2019-07-05 16:56:05 +02:00
|
|
|
scinote_development_storage:
|