Skip to content

Commit 8f87726

Browse files
committed
Prepare the Docker related files for the pg_isready example
[refs %787cfcc66d1c]
1 parent a8fc676 commit 8f87726

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

developing/webapp/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
FROM ruby:2.4.3-alpine
22

33
RUN apk add --no-cache \
4+
bash \
45
build-base \
5-
postgresql-dev
6+
postgresql-dev \
7+
postgresql
68

79
WORKDIR /tmp
810
COPY Gemfile* ./

developing/webapp/docker-compose.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
version: '3.3'
1+
version: '3.4'
22

33
services:
4-
lb:
5-
image: jfahrer/lb:latest
6-
environment:
7-
- PROXY_UPSTREAM=app:9494
8-
ports:
9-
- 80:80
10-
114
app:
125
image: jfahrer/webapp-ruby:latest
136
build:
@@ -29,10 +22,10 @@ services:
2922
volumes:
3023
- ./sql/create_table.sql:/docker-entrypoint-initdb.d/create_table.sql
3124

32-
client:
33-
image: jfahrer/checker-u-dev-a3:latest
25+
lb:
26+
image: jfahrer/lb:latest
3427
environment:
35-
- POSTGRES_USER=demo
36-
- POSTGRES_PASSWORD=secret
37-
- POSTGRES_DB=demo
38-
- POSTGRES_HOST=pg
28+
- PROXY_UPSTREAM=app:9494
29+
ports:
30+
- 80:80
31+

0 commit comments

Comments
 (0)