0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

本番環境をdockerで立ち上げる

Posted at
 backend:
    build:
    context: ./backend
    # productionを指定する
    command: bash -c "bundle exec rails s -p 3000 -e production -b '0.0.0.0'"
    volumes:
      - "./backend:/app"
    environment:
      POSTGRES_USER: $POSTGRES_USER
      POSTGRES_PASSWORD: $POSTGRES_PASSWORD
      RAILS_MASTER_KEY: sdfhsfdhsdddddgdgdfgdgdgdfgdfgdfg
      SECRET_KEY_BASE: sdfhsfdhsdddddgdgdfgdgdgdfgdfgdfg
         #backend/config/credentials/production.keyの中身↑
      
    ports:
      - "$VUE_APP_API_PORT:3000"
    stdin_open: true
    tty: true
    depends_on:
      - db
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?