2017-04-24 16:12:07 +08:00
|
|
|
version: '2'
|
2017-04-21 15:45:30 +08:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
container_name: scinote_db_development
|
2023-07-11 19:24:44 +08:00
|
|
|
image: postgres:15
|
2017-04-21 15:45:30 +08:00
|
|
|
volumes:
|
|
|
|
- scinote_development_postgres:/var/lib/postgresql/data
|
2019-09-09 22:46:51 +08:00
|
|
|
ports:
|
2019-10-17 19:30:14 +08:00
|
|
|
- "5432:5432"
|
2020-02-19 16:54:40 +08:00
|
|
|
environment:
|
2020-02-19 17:26:37 +08:00
|
|
|
- "POSTGRES_USER=postgres"
|
2020-02-19 16:54:40 +08:00
|
|
|
- "POSTGRES_PASSWORD=mysecretpassword"
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2017-04-21 15:45:30 +08:00
|
|
|
web:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: scinote_web_development
|
|
|
|
container_name: scinote_web_development
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2024-09-06 18:54:15 +08:00
|
|
|
user: scinote
|
2017-04-21 15:45:30 +08:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
command: >
|
|
|
|
bash -c "rm -f /usr/src/app/tmp/pids/server.pid &&
|
|
|
|
(bundle check || bundle install) &&
|
2023-03-31 18:11:57 +08:00
|
|
|
bundle exec rails s -b 0.0.0.0"
|
2017-04-21 15:45:30 +08:00
|
|
|
environment:
|
|
|
|
- RAILS_ENV=development
|
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app
|
2017-04-21 21:13:20 +08:00
|
|
|
- scinote_development_bundler:/usr/local/bundle/
|
2017-04-21 15:45:30 +08:00
|
|
|
- scinote_development_files:/usr/src/app/public/system
|
2019-07-05 22:56:05 +08:00
|
|
|
- scinote_development_storage:/usr/src/app/storage
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2023-03-31 18:11:57 +08:00
|
|
|
webpack:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: scinote_web_development
|
|
|
|
container_name: scinote_webpack_development
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2024-09-06 18:54:15 +08:00
|
|
|
user: scinote
|
2023-03-31 18:11:57 +08:00
|
|
|
command: >
|
|
|
|
bash -c "yarn install && yarn build --watch"
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=development
|
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app
|
|
|
|
- scinote_development_bundler:/usr/local/bundle/
|
|
|
|
- scinote_development_files:/usr/src/app/public/system
|
|
|
|
|
2023-07-06 19:19:28 +08:00
|
|
|
css_bundling:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: scinote_web_development
|
|
|
|
container_name: scinote_css_bundling_development
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2024-09-06 18:54:15 +08:00
|
|
|
user: scinote
|
2023-07-06 19:19:28 +08:00
|
|
|
command: >
|
|
|
|
bash -c "yarn build:css --watch"
|
|
|
|
environment:
|
|
|
|
- NODE_ENV=development
|
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app
|
|
|
|
- scinote_development_bundler:/usr/local/bundle/
|
|
|
|
- scinote_development_files:/usr/src/app/public/system
|
|
|
|
|
2023-04-04 17:25:58 +08:00
|
|
|
tailwind:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
image: scinote_web_development
|
|
|
|
container_name: scinote_tailwind_development
|
|
|
|
stdin_open: true
|
|
|
|
tty: true
|
2024-09-06 18:54:15 +08:00
|
|
|
user: scinote
|
2023-04-04 17:25:58 +08:00
|
|
|
command: >
|
|
|
|
bash -c "rails tailwindcss:watch"
|
|
|
|
environment:
|
|
|
|
- RAILS_ENV=development
|
|
|
|
- NODE_ENV=development
|
|
|
|
volumes:
|
|
|
|
- .:/usr/src/app
|
|
|
|
- scinote_development_bundler:/usr/local/bundle/
|
|
|
|
- scinote_development_files:/usr/src/app/public/system
|
|
|
|
|
2017-04-21 15:45:30 +08:00
|
|
|
volumes:
|
|
|
|
scinote_development_postgres:
|
|
|
|
scinote_development_bundler:
|
|
|
|
scinote_development_files:
|
2019-07-05 22:56:05 +08:00
|
|
|
scinote_development_storage:
|