Skip to content

Commit

Permalink
allow Docker container to start more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Otto committed Feb 13, 2024
1 parent 2aa7eb7 commit bcad742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN echo "macaroon_file=/root/.lnd/data/chain/bitcoin/testnet/admin.macaroon" >>
EXPOSE 8081
RUN echo "server.address=0.0.0.0" >> /root/override.properties
CMD /etc/init.d/postgresql start && \
sudo -u postgres psql -c "CREATE USER bitcoin WITH PASSWORD 'unset'" && \
sudo -u postgres createdb lndmanagej -O bitcoin && \
(sudo -u postgres psql -c "CREATE USER bitcoin WITH PASSWORD 'unset'" || true) && \
(sudo -u postgres createdb lndmanagej -O bitcoin || true) && \
java -jar application/build/libs/application-boot.jar --spring.config.location=classpath:application.properties,/root/override.properties

# docker build -t lnd-managej .
Expand Down

0 comments on commit bcad742

Please sign in to comment.