Skip to content

Commit ebbd36d

Browse files
committed
example fixup on lagoon
1 parent ca2e900 commit ebbd36d

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

config/database.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ default: &default
55
adapter: postgresql
66
encoding: unicode
77
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
8-
username: <%= ENV.fetch("POSTGRES_USERNAME") { "drupal" } %>
9-
password: <%= ENV.fetch("POSTGRES_PASSWORD") { "drupal" } %>
8+
username: <%= ENV.fetch("POSTGRES_USERNAME") { "lagoon" } %>
9+
password: <%= ENV.fetch("POSTGRES_PASSWORD") { "lagoon" } %>
1010
host: <%= ENV.fetch("POSTGRES_HOST") { "postgres" } %>
11-
database: <%= ENV.fetch("('POSTGRES_DATABASE'") { "drupal" } %>
12-
11+
database: <%= ENV.fetch("POSTGRES_DATABASE") { "lagoon" } %>
12+
port: <%= ENV.fetch("POSTGRES_PORT") { "5432" } %>
1313

1414
development:
1515
<<: *default

db/schema.rb

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '2.3'
2-
31
x-volumes:
42
&default-volumes
53
# Define all volumes you would like to have real-time mounted into the docker containers
@@ -9,7 +7,7 @@ x-volumes:
97
x-environment:
108
&default-environment
119
# Route that should be used locally, if you are using pygmy, this route *must* end with .docker.amazee.io
12-
LAGOON_ROUTE: &default-url http://${COMPOSE_PROJECT_NAME:-ruby}.docker.amazee.io
10+
LAGOON_ROUTE: &default-url http://${COMPOSE_PROJECT_NAME:-ruby-on-rails}.docker.amazee.io
1311
# Uncomment if you like to have the system behave like in production
1412
#LAGOON_ENVIRONMENT_TYPE: production
1513
# Uncomment to enable xdebug and then restart via `docker-compose up -d`
@@ -21,8 +19,6 @@ x-user:
2119
user: '1000'
2220

2321
volumes:
24-
files:
25-
{}
2622
db:
2723
{}
2824

@@ -37,7 +33,7 @@ services:
3733
context: .
3834
dockerfile: ./lagoon/ruby.dockerfile
3935
labels:
40-
lagoon.type: node
36+
lagoon.type: basic
4137
<< : *default-volumes
4238
environment:
4339
<< : *default-environment # loads the defined environment variables from the top
@@ -57,18 +53,17 @@ services:
5753
- ruby
5854
environment:
5955
<< : *default-environment # loads the defined environment variables from the top
60-
LAGOON_LOCALDEV_URL: ruby.docker.amazee.io
56+
LAGOON_LOCALDEV_URL: ruby-on-rails.docker.amazee.io
6157
networks:
6258
- amazeeio-network
6359
- default
6460

6561
postgres:
66-
image: uselagoon/postgres-15-drupal:latest
62+
image: uselagoon/postgres-15:latest
6763
labels:
6864
lagoon.type: postgres
69-
lando.type: postgres-drupal
7065
ports:
71-
- "5432" # exposes the port 5432 with a random local port, find it with `docker-compose port postgres 5432`
66+
- "5432" # exposes the port 5432 with a random local port, find it with `docker compose port postgres 5432`
7267
<< : *default-user # uses the defined user from top
7368
environment:
7469
<< : *default-environment

lagoon/ruby.dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ FROM uselagoon/ruby-3.3:latest
22

33
ENV LAGOON=ruby
44

5-
65
RUN apk add --no-cache --virtual .build-deps \
76
build-base sqlite sqlite-dev \
87
curl-dev curl ruby-dev make \
98
zlib-dev libxml2-dev libxslt-dev tzdata yaml-dev sqlite-dev postgresql-dev mysql-dev \
109
ruby ruby-io-console ruby-json yaml nodejs \
11-
&& gem install webrick puma bundler
12-
10+
&& gem install webrick puma bundler \
11+
&& apk add --no-cache \
12+
postgresql-client \
13+
rsync \
14+
tar \
15+
&& rm -rf /var/cache/apk/*
1316

1417
WORKDIR /app
1518
COPY . /app

0 commit comments

Comments
 (0)