Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: https起動を追加 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@ doc/
/node_modules

# Ignore precompiled assets for production environment
/public/assets
/public/assets


/https-portal-data
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ rails s -b 0.0.0.0 -p 3001
docker-compose build
docker-compose up -d
docker-compose exec web bash

```

- 2.ライブラリのインストール(bashで実行)
Expand All @@ -53,7 +52,6 @@ bundle install
- 3.APIサーバーの起動(bash上で実行)
```
rails s -b 0.0.0.0 -p 3001

```


Expand Down
3 changes: 3 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,7 @@

# Raise error when a before_action's only/except options reference missing actions
config.action_controller.raise_on_missing_callback_actions = true


config.hosts << "sksk.example.com"
end
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ services:
ports:
- "3001:3001"

https-portal:
image: steveltn/https-portal:1.23
ports:
- '80:80'
- '443:443'
restart: always
environment:
DOMAINS: 'sksk.example.com -> http://web:3001'
STAGE: 'local'
# STAGE: 'production' # Don't use production until staging works
# FORCE_RENEW: 'true'
volumes:
- ./https-portal-data:/var/lib/https-portal



volumes:
postgres:
driver: local
Expand Down