Skip to content

Commit 9e91fd5

Browse files
Enforce a container_name and rename the postgres container
1 parent d90d347 commit 9e91fd5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docker-compose.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version: "3"
44
services:
55

66
invidious:
7+
container_name: invidious
78
build:
89
context: .
910
dockerfile: docker/Dockerfile
@@ -19,7 +20,7 @@ services:
1920
dbname: invidious
2021
user: kemal
2122
password: kemal
22-
host: invidious-postgres
23+
host: invidious-db
2324
port: 5432
2425
check_tables: true
2526
# external_port:
@@ -32,9 +33,10 @@ services:
3233
timeout: 5s
3334
retries: 2
3435
depends_on:
35-
- invidious-postgres
36+
- invidious-db
3637

37-
invidious-postgres:
38+
invidious-db:
39+
container_name: invidious-db
3840
image: postgres:14-alpine
3941
restart: unless-stopped
4042
volumes:

0 commit comments

Comments
 (0)