diff options
| author | Perflyst <mail@perflyst.de> | 2020-08-03 17:09:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-03 17:09:51 +0200 |
| commit | 0ad974c57b931f2b9bb97de8295d2e68fce61a6d (patch) | |
| tree | 884f273142777e991ceefe94cc4c86175e406fb5 /docker-compose.yml | |
| parent | 62f015fc34194979ef2cbb5bfef2f8df608177bc (diff) | |
| parent | e16d951da059c1a82eba7532b8a28dc51bcb7e21 (diff) | |
| download | invidious-0ad974c57b931f2b9bb97de8295d2e68fce61a6d.tar.gz invidious-0ad974c57b931f2b9bb97de8295d2e68fce61a6d.tar.bz2 invidious-0ad974c57b931f2b9bb97de8295d2e68fce61a6d.zip | |
Merge pull request #1211 from SuperSandro2000/improve-postgres
Improve postgres Dockerfile
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index d7b3fa91..ffa24570 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,18 @@ version: '3' services: postgres: - build: - context: . - dockerfile: docker/Dockerfile.postgres + image: postgres:10 restart: unless-stopped volumes: - postgresdata:/var/lib/postgresql/data + - ./config/sql:/config/sql + - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh + environment: + POSTGRES_DB: invidious + POSTGRES_PASSWORD: kemal + POSTGRES_USER: kemal healthcheck: - test: ["CMD", "pg_isready", "-U", "postgres"] + test: ["CMD", "pg_isready", "-U", "postgres"] invidious: build: context: . |
