Add container_name to all compose services.

This commit is contained in:
2023-08-20 17:00:18 -07:00
parent 2799390411
commit 4c846b871e
5 changed files with 9 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ version: '3'
services: services:
app: app:
container_name: dns-app
build: ./ build: ./
restart: always restart: always
ports: ports:

View File

@@ -8,6 +8,7 @@ version: '3'
services: services:
app: app:
container_name: gitlab-app
image: 'gitlab/gitlab-ce:latest' image: 'gitlab/gitlab-ce:latest'
restart: always restart: always
ports: ports:

View File

@@ -5,6 +5,7 @@ version: '2'
services: services:
app: app:
container_name: website-app
build: ./ build: ./
restart: always restart: always
ports: ports:

View File

@@ -6,7 +6,8 @@
version: "3" version: "3"
services: services:
invidious: app:
container_name: invidious-app
image: quay.io/invidious/invidious:latest image: quay.io/invidious/invidious:latest
restart: always restart: always
ports: ports:
@@ -42,7 +43,8 @@ services:
depends_on: depends_on:
- invidious-db - invidious-db
invidious-db: db:
container_name: invidious-db
image: docker.io/library/postgres:14 image: docker.io/library/postgres:14
restart: always restart: always
volumes: volumes:

View File

@@ -10,6 +10,7 @@ version: '3'
services: services:
app: app:
container_name: rp-app
build: ./ build: ./
restart: always restart: always
ports: ports:
@@ -21,6 +22,7 @@ services:
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot: certbot:
container_name: rp-certbot
image: certbot/certbot image: certbot/certbot
restart: always restart: always
volumes: volumes: