Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM couchdb:3.1.1

COPY couchdb/views.json /tmp/
COPY couchdb/docker-entrypoint.sh /usr/local/bin/
COPY couchdb/bbrf-init.sh /usr/local/bin/
ADD https://raw.githubusercontent.com/honoki/bbrf-server/main/couchdb/views.json /tmp/
ADD https://raw.githubusercontent.com/honoki/bbrf-server/main/couchdb/docker-entrypoint.sh /usr/local/bin/
ADD https://raw.githubusercontent.com/honoki/bbrf-server/main/couchdb/bbrf-init.sh /usr/local/bin/

RUN apt-get install -y curl
RUN chmod +x /usr/local/bin/docker-entrypoint.sh && \
chmod +x /usr/local/bin/bbrf-init.sh

RUN apt-get install -y curl
2 changes: 1 addition & 1 deletion couchdb/bbrf-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

sleep 10

COUCHDB=http://couchdb:5984/
COUCHDB=http://$COUCHDB_HOSTNAME:5984/
AUTH=$COUCHDB_USER:$COUCHDB_PASSWORD

if [ -z "$BBRF_PASSWORD" ]; then
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=admin # please please please replace this with a secure password
- BBRF_PASSWORD=bbrf # please please please replace this with a secure password
- COUCHDB_HOSTNAME=couchdb
volumes:
- ./data/couchdb/1:/opt/couchdb/data
proxy:
Expand All @@ -19,4 +20,4 @@ services:
- ./proxy/docker-entrypoint.d/:/docker-entrypoint.d/
- ./proxy/keys/:/etc/nginx/keys/
depends_on:
- couchdb
- couchdb