Skip to content

Commit 674630e

Browse files
committedAug 22, 2021
PostgreSQL Database Container Image
1 parent e9e166f commit 674630e

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
 

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt-get update &&\
66
libsyntax-keyword-try-perl libcapture-tiny-perl libhttp-tinyish-perl libnet-ssleay-perl\
77
liburl-encode-perl libextutils-config-perl libextutils-helpers-perl libextutils-installpaths-perl\
88
libclone-choose-perl libhash-merge-perl libtest-deep-perl liburi-nested-perl\
9-
libsql-abstract-perl liburi-db-perl libdbd-sqlite3-perl
9+
libsql-abstract-perl liburi-db-perl libdbd-sqlite3-perl postgresql-server-dev-all
1010
RUN mkdir -p /usr/share/perldoc-browser/log
1111
COPY cpanfile cpanfile-cpandoc /usr/share/perldoc-browser/
1212
RUN cd /usr/share/perldoc-browser/\

‎data/.keep

Whitespace-only changes.

‎docker-compose.yml.example

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
version: '3'
22
services:
3+
db:
4+
container_name: 'perldoc_db'
5+
image: postgres:11.13-alpine3.14
6+
# restart: always
7+
ports:
8+
- "5432:5432"
9+
volumes:
10+
- /absolute/path/to/project/data:/var/lib/postgresql/data:Z
11+
environment:
12+
- COMPONENT=perldoc_db
13+
- POSTGRES_USER=perldoc
14+
- POSTGRES_PASSWORD=secret
315
web:
416
container_name: 'perldoc_web'
517
image: perldoc_web

0 commit comments

Comments
 (0)
Please sign in to comment.