This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
887dd3c
commit 1c19c8b
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ruby:3.3 | ||
|
||
# throw errors if Gemfile has been modified since Gemfile.lock | ||
RUN bundle config --global frozen 1 | ||
|
||
WORKDIR /srv/oblong/ | ||
|
||
COPY Gemfile Gemfile.lock ./ | ||
RUN bundle install | ||
RUN RAILS_ENV=production bin/rails assets:precompile | ||
|
||
COPY . . | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["bundle", "exec", "puma", "-e", "production", "-b", "0.0.0.0:3000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
services: | ||
panel: | ||
build: . | ||
ports: | ||
- 127.0.0.1:3000:3000 | ||
|
||
postgresql: | ||
image: postgres | ||
volumes: | ||
- postgres-data:/var/lib/postgresql/data | ||
environment: | ||
POSTGRES_PASSWORD: changeme | ||
POSTGRES_DB: oblong | ||
|
||
volumes: | ||
postgres-data: |