try fix
This commit is contained in:
parent
3a20705e4b
commit
a53f7d44c4
2 changed files with 3 additions and 8 deletions
|
@ -5,10 +5,11 @@ RUN apt update && apt install -y \
|
|||
|
||||
RUN git clone https://github.com/iv-org/invidious /tmp/invidious
|
||||
RUN mkdir -p /config
|
||||
RUN cp -r /tmp/invidious/config/sql /config/sql
|
||||
RUN cp -r /tmp/invidious/docker/init-invidious-db.sh /docker-entrypoint-initdb.d/init-invidious-db.sh
|
||||
RUN cp -r /tmp/invidious/config/sql /config/sql
|
||||
|
||||
ENV POSTGRES_DB=invidious_db
|
||||
ENV POSTGRES_USER=invidious_username
|
||||
ENV POSTGRES_PASSWORD=invidious_password
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
||||
|
|
|
@ -205,12 +205,6 @@ services:
|
|||
restart: unless-stopped
|
||||
volumes:
|
||||
- invidious-pgdata:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_DB: invidious
|
||||
POSTGRES_USER: invidious
|
||||
POSTGRES_PASSWORD: invidious
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
||||
|
||||
volumes:
|
||||
invidious-pgdata:
|
||||
|
|
Reference in a new issue