Skip to content

Commit f16be1d

Browse files
committed
Update docker build instructions and docker compose to use latest version of Alpine, PostgreSQL and postgres-websockets [fix #49]
1 parent b2ac85c commit f16be1d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use Alpine Linux as base image
2-
FROM alpine:3.8
2+
FROM alpine:3.11.6
33

44
# Install libpq and gmp dependencies (dynamic libraries required by the project)
55
RUN apk update && apk add libpq gmp libffi
@@ -18,6 +18,6 @@ ENV PGWS_DB_URI= \
1818

1919
# Run the binary on container start
2020
# (substitute your project name for 'example')
21-
CMD ["postgres-websockets", "/etc/postgres-websockets.conf"]
21+
CMD postgres-websockets
2222

2323
EXPOSE 3000

Dockerfile.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.8
1+
FROM alpine:3.11.6
22

33
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
44
RUN apk -U add shadow@testing

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
db:
4-
image: postgres:10-alpine
4+
image: postgres:12-alpine
55
ports:
66
- "5433:5432"
77
environment:
@@ -12,6 +12,7 @@ services:
1212
environment:
1313
PGWS_DB_URI: postgres://pgws:example@db/pgws
1414
PGWS_JWT_SECRET: "auwhfdnskjhewfi34uwehdlaehsfkuaeiskjnfduierhfsiweskjcnzeiluwhskdewishdnpwe"
15+
PGWS_ROOT_PATH: /home/postgres-websockets/client-example
1516
ports:
1617
- "3000:3000"
1718
depends_on:

0 commit comments

Comments
 (0)