| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- version: "3.7"
- x-app:
- &app
- build:
- context: .
- target: dev
- entrypoint: config/docker/rails-dev-entrypoint.sh
- volumes:
- - type: bind
- source: .
- target: /app
- - gems:/usr/local/bundle
- - node_modules:/app/node_modules
- working_dir: /app
- services:
- web:
- <<: *app
- command: rails server -p 3000 -b 0.0.0.0
- depends_on:
- - db
- - webpack_dev_server
- environment:
- - DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- - WEBPACKER_DEV_SERVER_HOST=0.0.0.0
- ports:
- - ${WEB_HOST_PORT}:3000
- webpack_dev_server:
- <<: *app
- command: bin/webpack-dev-server --public 0.0.0.0
- entrypoint: config/docker/rails-dev-entrypoint.sh
- environment:
- - WEBPACKER_DEV_SERVER_HOST=0.0.0.0
- ports:
- - 3035:3035
- db:
- image: postgres:11.2-alpine
- environment:
- - POSTGRES_DB
- - POSTGRES_PASSWORD
- - POSTGRES_USER
- ports:
- - ${DB_HOST_PORT}:5432
- volumes:
- - postgres-persisted-volume:/var/lib/postgresql/data
- volumes:
- postgres-persisted-volume:
- gems:
- node_modules:
|