diff options
| author | TheFrenchGhosty <TheFrenchGhosty@posteo.is> | 2022-02-22 03:02:14 +0100 |
|---|---|---|
| committer | TheFrenchGhosty <TheFrenchGhosty@posteo.is> | 2022-02-22 03:02:14 +0100 |
| commit | 9e91fd524111e5633de391dc5328f8d68124606a (patch) | |
| tree | 2ea664d80f9d03e03dce2bc555d06a04c9d8e168 /docker-compose.yml | |
| parent | d90d34700641aa8af0fa718287f2f3daa140ed4f (diff) | |
| download | invidious-9e91fd524111e5633de391dc5328f8d68124606a.tar.gz invidious-9e91fd524111e5633de391dc5328f8d68124606a.tar.bz2 invidious-9e91fd524111e5633de391dc5328f8d68124606a.zip | |
Enforce a container_name and rename the postgres container
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index a5da3bb5..96e15105 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,7 @@ version: "3" services: invidious: + container_name: invidious build: context: . dockerfile: docker/Dockerfile @@ -19,7 +20,7 @@ services: dbname: invidious user: kemal password: kemal - host: invidious-postgres + host: invidious-db port: 5432 check_tables: true # external_port: @@ -32,9 +33,10 @@ services: timeout: 5s retries: 2 depends_on: - - invidious-postgres + - invidious-db - invidious-postgres: + invidious-db: + container_name: invidious-db image: postgres:14-alpine restart: unless-stopped volumes: |
