1
0

Make consistent container names

This commit is contained in:
Anton Vakhrushev 2025-05-04 10:26:17 +03:00
parent 4221fb0009
commit 0e05d3e066
Signed by: av
GPG Key ID: F5BF52FC352E255A
7 changed files with 8 additions and 12 deletions

View File

@ -1,3 +0,0 @@
WEB_SERVER_PORT=9494
USER_UID=1000
USER_GID=1000

View File

@ -1 +0,0 @@
data/

View File

@ -1,11 +1,11 @@
services: services:
gitea_web_app: gitea_app:
image: gitea/gitea:1.23.7 image: gitea/gitea:1.23.7
restart: unless-stopped restart: unless-stopped
container_name: gitea_web_app container_name: gitea_app
ports: ports:
- "${WEB_SERVER_PORT}:3000" - "127.0.0.1:{{ gitea_port }}:3000"
- "2222:22" - "2222:22"
volumes: volumes:
- ./data:/data - ./data:/data

View File

@ -5,7 +5,7 @@ set -o pipefail
echo "Gitea: backup data with gitea dump" echo "Gitea: backup data with gitea dump"
(cd {{ base_dir }} && docker compose exec -u "{{ user_create_result.uid }}:{{ user_create_result.group }}" -w /backups gitea_web_app gitea dump -c /data/gitea/conf/app.ini) (cd {{ base_dir }} && docker compose exec -u "{{ user_create_result.uid }}:{{ user_create_result.group }}" -w /backups gitea_app gitea dump -c /data/gitea/conf/app.ini)
echo "Gitea: remove old backups" echo "Gitea: remove old backups"

View File

@ -1,6 +1,7 @@
services: services:
homepage-web: homepage_app:
image: "${WEB_SERVICE_IMAGE}" image: "${WEB_SERVICE_IMAGE}"
container_name: homepage_app
ports: ports:
- "127.0.0.1:${WEB_SERVICE_PORT}:80" - "127.0.0.1:${WEB_SERVICE_PORT}:80"
restart: unless-stopped restart: unless-stopped

View File

@ -7,9 +7,9 @@
services: services:
keycloak_web_app: keycloak_app:
image: quay.io/keycloak/keycloak:24.0.4 image: quay.io/keycloak/keycloak:24.0.4
container_name: keycloak_web_app container_name: keycloak_app
command: ["start-dev"] command: ["start-dev"]
restart: unless-stopped restart: unless-stopped
environment: environment:

View File

@ -27,7 +27,6 @@
DOCKER_PREFIX: "{{ app_name }}" DOCKER_PREFIX: "{{ app_name }}"
IMAGE_PREFIX: "{{ app_name }}" IMAGE_PREFIX: "{{ app_name }}"
CONTAINER_PREFIX: "{{ app_name }}" CONTAINER_PREFIX: "{{ app_name }}"
WEB_SERVER_PORT: "127.0.0.1:{{ gitea_port }}"
USER_UID: "{{ user_create_result.uid }}" USER_UID: "{{ user_create_result.uid }}"
USER_GID: "{{ user_create_result.group }}" USER_GID: "{{ user_create_result.group }}"