Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
1f90c30
Add superadmin setting to users and protect site settings page
em-cd Oct 10, 2022
6ccd268
Tweak sample CSVs
em-cd Oct 11, 2022
ebc5507
Failing test
em-cd Oct 11, 2022
7b35381
Fix for duplicate taxonomies in data import
em-cd Oct 11, 2022
0b832d5
Update webdrivers gem
em-cd Oct 11, 2022
9bff7b5
SUPPORT-25 show end date for child services register column on ofsted…
apricot13 Aug 19, 2022
5e0a578
SUPPORT-25 Always show end date
apricot13 Oct 27, 2022
373d251
Merge pull request #265 from wearefuturegov/SUPPORT-25-show-end-date-…
apricot13 Oct 28, 2022
82f3907
Merge pull request #259 from wearefuturegov/import-bugfix
apricot13 Oct 28, 2022
af5f2cb
Bump nokogiri from 1.13.6 to 1.13.9
dependabot[bot] Oct 28, 2022
45de33a
Merge pull request #264 from wearefuturegov/dependabot/bundler/nokogi…
em-cd Oct 31, 2022
fc4d89a
Fix service location import bug
em-cd Nov 1, 2022
db12581
Test that only superadmins can view site settings
em-cd Nov 2, 2022
7cef1a2
Add test for updating site settings
em-cd Nov 2, 2022
e874f92
Adds support to generate HTML version of code coverage report for
em-cd Nov 2, 2022
1e957d5
Merge pull request #268 from wearefuturegov/bugfix/service-location-i…
apricot13 Nov 2, 2022
210e8e6
Merge pull request #267 from wearefuturegov/develop
em-cd Nov 3, 2022
03871d3
Docker environment for Outpost
apricot13 Mar 10, 2023
6ca3b75
Revert "Docker environment for Outpost" for some reason tower pushed …
apricot13 Mar 10, 2023
b701cf8
updating images
apricot13 Apr 27, 2023
21909e7
Merge pull request #285 from wearefuturegov/feature/update-readme-images
apricot13 Aug 20, 2023
bc708f5
Merge remote-tracking branch 'origin/feature/generate-html-coverage-r…
apricot13 Aug 23, 2023
72594c6
Merge remote-tracking branch 'origin/protect-site-settings-page' into…
apricot13 Aug 23, 2023
a7ccb23
Docker container
apricot13 Aug 25, 2023
4d9578d
Publish image to github container registry
apricot13 Aug 25, 2023
ee82ae4
need default username and password
apricot13 Aug 25, 2023
44b783c
test env vars
apricot13 Aug 25, 2023
89f4e7c
fix for precompile error in tests
apricot13 Aug 25, 2023
42a0a2a
Publish Docker image
apricot13 Aug 25, 2023
5231723
Update documentation
apricot13 Aug 25, 2023
18ef50e
build and run the image
apricot13 Aug 25, 2023
27f2872
tweak to seed data and docker compose setup for dev
apricot13 Aug 25, 2023
c73d3df
Update dockerfile to prevent permission errors but still run as USER
apricot13 Sep 22, 2023
faacac7
Update to the scss to make themeing more robust
apricot13 Sep 22, 2023
38e8170
Update readme and env vars
apricot13 Sep 25, 2023
de6c86d
Adds a wysiwyg editor to the description field for services
apricot13 Sep 25, 2023
04e737e
Remove quotes as an option
apricot13 Sep 26, 2023
ba170ce
Add custom form builder for wysiwyg fields
apricot13 Sep 26, 2023
c4c0eaf
Add in custom body classes and feature_wysiwyg flag
apricot13 Sep 26, 2023
5093568
Remove strikethrough
apricot13 Sep 29, 2023
9842d0f
Adding postgresql-client to docker container
apricot13 Oct 19, 2023
52b3f5f
only build when pushing to feature/develop
apricot13 Nov 29, 2023
3ccc7b3
only commit when pushing to feature/develop
apricot13 Nov 29, 2023
9858f6d
Merge pull request #287 from wearefuturegov/feature/rails-6-container…
apricot13 Nov 29, 2023
8598e44
Merge pull request #288 from wearefuturegov/feature/fix-settings-scss
apricot13 Nov 29, 2023
5bceee8
Merge pull request #289 from wearefuturegov/feature/rich-text-descrip…
apricot13 Nov 29, 2023
21fca3b
Merge pull request #290 from wearefuturegov/feature/add-postgres-client
apricot13 Nov 29, 2023
4dd6ef9
fix syntax error
apricot13 Nov 29, 2023
3af92d6
Merge pull request #292 from wearefuturegov/feature/fix-image-build-l…
apricot13 Nov 29, 2023
364b633
Update favicon
apricot13 Nov 29, 2023
56008c9
Merge pull request #293 from wearefuturegov/feature/update-favicon
apricot13 Nov 29, 2023
2d409df
Small fix to the full width layout page erroring
apricot13 Jan 12, 2024
6fd3e00
Merge pull request #294 from wearefuturegov/feature/full-width
apricot13 Jan 12, 2024
aff2a91
possible fix for trix editors being wrong on load
apricot13 Feb 13, 2024
21f908a
Remove tags for service description before previewing it in popup
apricot13 Feb 13, 2024
406e222
Merge pull request #296 from wearefuturegov/feature/wysiwyg-and-rich-…
apricot13 Feb 13, 2024
24418f1
Update yarn, node, bundler versions to match latest heroku-20
apricot13 Feb 13, 2024
33f16c9
Enable testing on heroku
apricot13 Feb 19, 2024
7b92ed2
update github tests
apricot13 Feb 20, 2024
8bfd873
review apps
apricot13 Feb 20, 2024
81ee706
Merge pull request #297 from wearefuturegov/feature/heroku-20-updates
apricot13 Feb 20, 2024
33315af
Merge pull request #291 from wearefuturegov/feature/develop
apricot13 Feb 20, 2024
63e7551
Merge pull request #298 from wearefuturegov/develop
apricot13 Feb 20, 2024
f588e49
update doorkeeper
apricot13 Feb 20, 2024
88fee60
Merge pull request #303 from wearefuturegov/feature/doorkeeper-updates
apricot13 Feb 21, 2024
bf22b40
include /tmp/pid's
apricot13 Feb 28, 2024
1961d19
docker image build
apricot13 Feb 28, 2024
cce9552
Merge pull request #307 from wearefuturegov/feature/docker-production…
apricot13 Feb 28, 2024
84e010b
Update footer links for greenwich
apricot13 Mar 4, 2024
1c056cd
Merge pull request #309 from wearefuturegov/feature/footer-links
apricot13 Mar 4, 2024
9f71438
Update code to use latest google maps loader
apricot13 Mar 4, 2024
69d87b8
pass GOOGLE_CLIENT_KEY to application
apricot13 Mar 4, 2024
d7789ef
Merge pull request #310 from wearefuturegov/feature/update-google-maps
apricot13 Mar 4, 2024
5d37082
Outpost design library
apricot13 Mar 5, 2024
5751d62
Missing closing tag on services page
apricot13 Mar 5, 2024
a9c187c
Merge pull request #311 from wearefuturegov/feature/outpost-design-li…
apricot13 Mar 5, 2024
e168c58
Merge pull request #312 from wearefuturegov/fix/small-syntax-issue
apricot13 Mar 5, 2024
1586a3f
Add in breadcrumbs component + tables caption
apricot13 Mar 5, 2024
c852e23
Merge pull request #313 from wearefuturegov/feature/breadcrumbs
apricot13 Mar 5, 2024
ffc581b
Authenticated endpoint for services
apricot13 Mar 8, 2024
3c1718f
Merge pull request #314 from wearefuturegov/feature/services-endpoint
apricot13 Mar 8, 2024
4872ef6
Bump webpack-dev-middleware from 7.0.0 to 7.1.1
dependabot[bot] Mar 21, 2024
00dd28d
Revise docker setup for better compatibility and easier development w…
apricot13 Mar 25, 2024
5693717
install postgres client
apricot13 Mar 28, 2024
1ffc8f2
update latest image to this version
apricot13 Mar 28, 2024
fa85d43
prevent name clash as well as broken tests from GOOGLE_CLIENT_KEY
apricot13 Mar 28, 2024
ee7880a
RAILS_SERVE_STATIC_FILES
apricot13 Mar 28, 2024
383627c
static files node env
apricot13 Mar 28, 2024
198ba96
,
apricot13 Mar 28, 2024
657643c
update image on develop branch
apricot13 Mar 28, 2024
969c487
Merge pull request #317 from wearefuturegov/feature/refine-docker-app…
apricot13 Mar 28, 2024
5ffe117
Bump express from 4.18.2 to 4.19.2
dependabot[bot] Mar 28, 2024
712ed57
Update seed script to define what you would like seeded
apricot13 Mar 18, 2024
57f65c6
add in settings in nav
apricot13 Mar 18, 2024
ba85c05
add send_needs
apricot13 Mar 18, 2024
4438c9a
add send_need, accessibilty and suitability settings pages
apricot13 Mar 18, 2024
32c65d8
Update seeds to use model defaults
apricot13 Mar 18, 2024
c01349b
Change default order for send_needs, accessibilities and suitabilities
apricot13 Mar 18, 2024
460c90a
Merge pull request #319 from wearefuturegov/feature/crud
apricot13 Mar 28, 2024
5219c9e
Merge pull request #318 from wearefuturegov/dependabot/npm_and_yarn/e…
apricot13 Mar 28, 2024
4ffd986
Merge pull request #316 from wearefuturegov/dependabot/npm_and_yarn/w…
apricot13 Mar 28, 2024
61bcf64
Bump @yaireo/tagify from 3.25.0 to 4.9.8
dependabot[bot] Mar 28, 2024
03c9ea3
Bump puma from 4.3.12 to 5.6.8
dependabot[bot] Mar 28, 2024
fe7b3c4
Merge pull request #305 from wearefuturegov/dependabot/bundler/puma-5…
apricot13 Mar 28, 2024
76b6e79
Merge pull request #304 from wearefuturegov/dependabot/npm_and_yarn/y…
apricot13 Mar 28, 2024
8d4e524
Bump globalid from 0.4.2 to 1.1.0
dependabot[bot] Mar 28, 2024
743d9b2
Bump rack from 2.2.8 to 2.2.9
dependabot[bot] Mar 28, 2024
e5fcaa8
Bump rails-html-sanitizer from 1.4.3 to 1.6.0
dependabot[bot] Mar 28, 2024
35123bf
Bump follow-redirects from 1.15.5 to 1.15.6
dependabot[bot] Mar 28, 2024
ea58b65
Bump loofah from 2.18.0 to 2.22.0
dependabot[bot] Mar 28, 2024
b0da7b2
Bump httparty from 0.18.0 to 0.21.0
dependabot[bot] Mar 28, 2024
c3a983d
Merge pull request #300 from wearefuturegov/dependabot/bundler/global…
apricot13 Mar 28, 2024
8d64780
Merge pull request #320 from wearefuturegov/dependabot/bundler/rack-2…
apricot13 Mar 28, 2024
417a7ef
Merge pull request #315 from wearefuturegov/dependabot/npm_and_yarn/f…
apricot13 Mar 28, 2024
b383d28
Merge pull request #302 from wearefuturegov/dependabot/bundler/loofah…
apricot13 Mar 28, 2024
5e5da78
Merge pull request #301 from wearefuturegov/dependabot/bundler/rails-…
apricot13 Mar 28, 2024
2d81e23
Merge pull request #276 from wearefuturegov/dependabot/bundler/httpar…
apricot13 Mar 28, 2024
c513060
seed dummy data option in makefile
apricot13 Mar 28, 2024
8b35a74
Merge pull request #321 from wearefuturegov/feature/seeds-in-makefile
apricot13 Mar 29, 2024
2259372
TOP-197 Update local offer to say SEND Local offer
apricot13 Apr 22, 2024
2ad156a
Merge pull request #324 from wearefuturegov/TOP-197-change-local-offe…
apricot13 Apr 22, 2024
a9c673b
Merge pull request #323 from wearefuturegov/develop
apricot13 Apr 22, 2024
9f48754
Fix organisaiton name requirement bug
apricot13 Apr 22, 2024
acb848d
Merge pull request #325 from wearefuturegov/feature/fix-organisation-…
apricot13 Apr 22, 2024
d77f371
Merge pull request #326 from wearefuturegov/develop
apricot13 Apr 23, 2024
2382758
Update to the mongo container setup to ensure roles are correct
apricot13 Apr 25, 2024
da720ce
Update seeds to create nested taxonomies
apricot13 Apr 25, 2024
b1d1ab8
indent taxonomies in filters
apricot13 Apr 25, 2024
a8782da
change targetDirectories to be directories
apricot13 May 1, 2024
c9499e2
update tests
apricot13 May 1, 2024
524c2f5
fix tests
apricot13 May 1, 2024
3b0f492
directories not directory
apricot13 May 1, 2024
cd1b86e
Merge pull request #327 from wearefuturegov/TOP-196-display-second-le…
apricot13 May 1, 2024
980ce1d
Don't show 'extra questions' to providers if there aren't any also on…
apricot13 May 10, 2024
df8c821
Update tests and moved some logic back to task_list_sections
apricot13 May 10, 2024
073cd7d
Merge pull request #330 from wearefuturegov/feature/dont-show-extra-q…
apricot13 May 10, 2024
ef4debd
BSP-56 include postcode with service information
apricot13 May 22, 2024
7720d7e
Merge pull request #333 from wearefuturegov/BSP-56-view-by-provider-a…
apricot13 May 22, 2024
4389984
postcode no longer needed
apricot13 May 23, 2024
cea9bfc
Merge pull request #334 from wearefuturegov/feature/no-postcode
apricot13 May 23, 2024
cdcd09a
dont give postgres container a name by default
apricot13 May 23, 2024
01543e4
Merge pull request #335 from wearefuturegov/feature/remove-postgres-c…
apricot13 May 23, 2024
e0a8593
Update taxonomy tree styling and add helper for listing taxonomies in…
apricot13 May 23, 2024
00be7ab
Update service filters to use new taxonomies dropdown
apricot13 May 23, 2024
b853579
Update taxonomies page to use new taxonomies dropdown
apricot13 May 23, 2024
c3ed28f
Merge pull request #336 from wearefuturegov/feature/taxonomy-dropdown…
apricot13 May 23, 2024
46e3a70
adding in (and commenting out) team specific taxonomy filters
apricot13 May 23, 2024
984c5c5
Merge pull request #337 from wearefuturegov/feature/taxonomy-changes
apricot13 Jun 3, 2024
2bcb419
Forgot the 'All taxonomies' in the dropdown
apricot13 Jun 3, 2024
438005b
Merge pull request #338 from wearefuturegov/feature/missing-taxonomy-…
apricot13 Jun 3, 2024
5fd5c4a
Don't attempt to load images from google if not configured
apricot13 Jun 5, 2024
3f046f1
Housekeeping job - to make sure all services have their parent taxono…
apricot13 Jun 5, 2024
bdf1d27
Merge pull request #339 from wearefuturegov/feature/header_helper
apricot13 Jun 5, 2024
1203acd
Add new pages for settings and tools
apricot13 Jun 5, 2024
11c73a1
less service editor centric taxonomies form
apricot13 Jun 5, 2024
594962a
bulk add taxonomies form page
apricot13 Jun 5, 2024
951f9e7
add some optional skip callbacks and allow service as_json options to…
apricot13 Jun 5, 2024
df2c22e
Bulk add taxonomies controller
apricot13 Jun 5, 2024
c95bcc0
Merge pull request #340 from wearefuturegov/feature/add_parent_taxono…
apricot13 Jun 5, 2024
b3ed9e4
Merge pull request #341 from wearefuturegov/TOP-221-add-back-end-tool…
apricot13 Jun 5, 2024
8f5565b
Merge pull request #328 from wearefuturegov/develop
apricot13 Jun 5, 2024
06bf575
Merge branch 'production' into resolve-stageto-prod-conflicts
apricot13 Jun 5, 2024
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
7 changes: 7 additions & 0 deletions .docker/bin/check-versions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

echo "NODE Version: $(node --version) (should be: $(node -p "require('./package.json').engines.node"))"
echo "NPM Version: $(npm --version)"
echo "Yarn Version: $(yarn --version) (should be: $(node -p "require('./package.json').engines.yarn"))"
echo "Ruby Version: $(ruby --version) (should be: $(cat .ruby-version))"
echo "Bundler Version: $(bundler --version) (should be: $(awk '/BUNDLED WITH/{getline; print}' Gemfile.lock))"
2 changes: 2 additions & 0 deletions .docker/bin/make-buildpacks-test-file.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(cat app.json || echo '{}') | jq -r '.environments.test.buildpacks[].url' >.buildpacks &&
(test -s .buildpacks || rm .buildpacks)
11 changes: 11 additions & 0 deletions .docker/dev-docker-entrypoint-migrate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
# https://stackoverflow.com/a/38732187/1935918
set -e

if [ -f ./tmp/pids/server.pid ]; then
rm ./tmp/pids/server.pid
fi

bin/bundle exec rake db:migrate

exec bin/bundle exec "$@"
8 changes: 8 additions & 0 deletions .docker/dev-docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -e

if [ -f ./tmp/pids/server.pid ]; then
rm ./tmp/pids/server.pid
fi

exec bin/bundle exec "$@"
15 changes: 15 additions & 0 deletions .docker/docker-entrypoint-migrate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh
# https://stackoverflow.com/a/38732187/1935918
set -e

/bin/herokuish procfile exec bin/bundle exec rake db:migrate

# not sure this is needed on this image
# if [ -f /app/tmp/pids/server.pid ]; then
# rm /app/tmp/pids/server.pid
# fi

# put things sort of back to default
# default entrypoint is /start
# pass cmd to /start
exec /start "$@"
14 changes: 14 additions & 0 deletions .docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
# https://stackoverflow.com/a/38732187/1935918
set -e

# not sure this is needed on this image
# if [ -f /app/tmp/pids/server.pid ]; then
# rm /app/tmp/pids/server.pid
# fi

# put things sort of back to default
# default entrypoint is /start
# pass cmd to /start (commands are defined in Proc file)
# set entrypoint to /exec to run custom commands
exec /start "$@"
99 changes: 99 additions & 0 deletions .docker/images/dev-base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Because we want to be as close to the 'production' environment as possible when developing/running tests we base our dev environment on the heroku stack.
# Currently heroku-20 is based on ubuntu 20.04 which doesn't have the ruby version we need in the package manager so we need to build a base image first
# we only do this once and then we can use the image for development and testing purposes.
# ideally in the future when we're no longer using 3.0.3 this wont be necessary

# If you need to leave the container running for example to debug something switch out the init command with
# CMD ["tail", "-f", "/dev/null"]

# if your using these values anywhere new see https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact

ARG HEROKU_STACK=20
ARG YARN_VERSION=1.22.19
ARG NODE_VERSION=20.9.0
ARG RUBY_VERSION=3.0.3
ARG BUNDLER_VERSION=2.3.25

# ----------------------------------------------------------------
# using heroku as our base since we run the production apps on heroku
FROM heroku/heroku:$HEROKU_STACK

ARG NODE_VERSION
ARG RUBY_VERSION
ARG BUNDLER_VERSION

# make this stage non-interactive
ENV DEBIAN_FRONTEND=noninteractive

# updates
RUN apt-get update --error-on=any


# install dependencies for node install
RUN apt-get install -y \
ca-certificates \
curl


# install dependencies for ruby install
RUN apt-get install -y autoconf \
patch \
build-essential \
rustc \
libssl-dev \
libyaml-dev \
libreadline6-dev \
zlib1g-dev \
libgmp-dev \
libncurses5-dev \
libffi-dev \
libgdbm6 \
libgdbm-dev \
libdb-dev \
uuid-dev

# -------------
# install node
# -------------

# install specific node version from prepackaged binaries
ARG NODE_PACKAGE=node-v$NODE_VERSION-linux-x64
ARG NODE_HOME=/opt/$NODE_PACKAGE
ENV NODE_PATH $NODE_HOME/lib/node_modules
ENV PATH $NODE_HOME/bin:$PATH
RUN curl https://nodejs.org/dist/v$NODE_VERSION/$NODE_PACKAGE.tar.gz | tar -xzC /opt/
# enable yarn
RUN corepack enable

# -------------
# install ruby & bundler version
# -------------

# Create a non-root user
RUN useradd -m outpost-user

# Switch to the new user
USER outpost-user

# ubuntu ruby-build package is too old to get the version we need so we're adding it here
RUN git clone https://github.com/rbenv/rbenv.git ~/.rbenv && \
echo 'export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"' >> ~/.bashrc && \
echo 'eval "$(rbenv init -)"' >> ~/.bashrc && \
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build


# $HOME is set in the shell but not in docker
ENV HOME /home/outpost-user
ENV PATH $HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH

RUN rbenv install $RUBY_VERSION
RUN rbenv global $RUBY_VERSION

# install bundler
RUN gem install bundler:$BUNDLER_VERSION

# after this point we don't need to be non-interactive anymore since we'll be running the container
ENV DEBIAN_FRONTEND=


# CMD ["tail", "-f", "/dev/null"]
20 changes: 20 additions & 0 deletions .docker/services/mongo/mongo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "3.7"
services:
mongo:
image: mongo:6
ports:
- 27018:27017
volumes:
- mongo-volume:/data/db
- ./setup-mongodb.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-admin}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD:-password}
MONGO_INITDB_USERNAME: ${MONGO_INITDB_USERNAME:-outpost}
MONGO_INITDB_PASSWORD: ${MONGO_INITDB_PASSWORD:-password}
MONGO_INITDB_DATABASE: ${MONGO_INITDB_DATABASE:-outpost_api_development}
networks:
- internal_network

volumes:
mongo-volume:
35 changes: 35 additions & 0 deletions .docker/services/mongo/setup-mongodb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
db = db.getSiblingDB(
process.env.MONGO_INITDB_DATABASE || "outpost_api_development"
);

db.createUser({
user: process.env.MONGO_INITDB_USERNAME || "outpost",
pwd: process.env.MONGO_INITDB_PASSWORD || "password",
roles: [
{
role: "readWrite",
db: process.env.MONGO_INITDB_DATABASE || "outpost_api_development",
},
],
});

db.createCollection("indexed_services");

db.indexed_services.createIndex(
{
name: "text",
description: "text",
},
{
weights: {
name: 5,
description: 1,
},
}
);
db.indexed_services.createIndex({
"locations.geometry": "2dsphere",
});
db.indexed_services.createIndex({
"taxonomies.slug": 1,
});
14 changes: 14 additions & 0 deletions .docker/services/outpost-api-service/outpost-api-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.7"
services:
outpost-api-service:
image: ghcr.io/wearefuturegov/outpost-api-service:latest
container_name: outpost-api-service
environment:
NODE_ENV: development
FORCE_SSL: false
DB_URI: mongodb://${MONGO_INITDB_ROOT_USERNAME:-outpost}:${MONGO_INITDB_ROOT_PASSWORD:-password}@mongo/${MONGO_INITDB_DATABASE:-outpost_api_development}?retryWrites=true&w=majority
ports:
- 3001:3001
networks:
- internal_network
- external_network
17 changes: 17 additions & 0 deletions .docker/services/postgres/postgres.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: "3.7"
services:
postgres:
image: postgres:13.7-alpine
environment:
POSTGRES_USER: ${POSTGRES_USER:-outpost}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
POSTGRES_DB: ${POSTGRES_DB:-outpost_development}
ports:
- 5433:5432
volumes:
- postgres-volume:/var/lib/postgresql/data
networks:
- internal_network

volumes:
postgres-volume:
62 changes: 62 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# git
.git
.gitattributes
.gitignore
.github

# bundler
.bundle
vendor/bundle

# env
.env
.env.*

# node
node_modules

# misc
.DS_Store
*.swp
*~

# Ignore precompiled javascript packs
public/packs
public/packs-test
public/assets
public/system

# Comment out this rule if you are OK with secrets being uploaded to the image
config/initializers/secret_token.rb
config/master.key

# Only include if you have production secrets in this file, which is no longer a Rails default
config/secrets.yml
lib/seeds/*

# Added in case image is built locally without fresh checkout
.idea
.vscode
.ruby-lsp

tmp/*

# logs
log/*
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.yarn-integrity

# Ignore uploaded files in development
/storage/*
!/storage/.keep

# Ignore Byebug command history file.
.byebug_history

coverage
spec/tmp

.buildpacks
53 changes: 0 additions & 53 deletions .env.example

This file was deleted.

Loading