|
|
|
@ -22,17 +22,18 @@ services: |
|
|
|
web: |
|
|
|
build: . |
|
|
|
restart: unless-stopped |
|
|
|
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -b 0.0.0.0" |
|
|
|
command: bash -c "bundle install && rm -f tmp/pids/server.pid && bundle exec rails db:create db:migrate db:seed && bundle exec rails s -p 3000 -b '0.0.0.0'" |
|
|
|
volumes: |
|
|
|
- .:/app |
|
|
|
ports: |
|
|
|
- "3000:3000" |
|
|
|
- "13131:3000" |
|
|
|
depends_on: |
|
|
|
- db |
|
|
|
environment: |
|
|
|
DATABASE_URL: postgres://postgres:password@db:5432/postgres |
|
|
|
DATABASE_URL: postgres://praktikum:password@db:35432/postgres |
|
|
|
RAILS_ENV: production |
|
|
|
SECRET_KEY_BASE: 5e1494fafd054d854b52661265e64e50d69787e9d4495173606f36fa3e5a685bd0264a41d6e138ea430f24008d5c07bcdf2a62a69de3c1b1cc042f05721432a0 |
|
|
|
DB: db |
|
|
|
networks: |
|
|
|
- praktikum-network |
|
|
|
volumes: |
|
|
|
|