Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Initial container files
Browse files Browse the repository at this point in the history
  • Loading branch information
reesericci committed Apr 18, 2024
1 parent 887dd3c commit 1c19c8b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Containerfile
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"]
16 changes: 16 additions & 0 deletions docker-compose.yml
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:

0 comments on commit 1c19c8b

Please sign in to comment.