From 138525835d78d759c0e169bc1be45937b9578fb7 Mon Sep 17 00:00:00 2001 From: rorapp Date: Wed, 5 Mar 2025 15:11:14 +0100 Subject: [PATCH] move adminer to develop --- README.md | 8 +------- apps/develop/adminer/docker-compose.yml | 20 ++++++++++++++++++++ apps/develop/gitea/docker-compose.yml | 2 +- 3 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 apps/develop/adminer/docker-compose.yml diff --git a/README.md b/README.md index 176b99d..a76bb7c 100644 --- a/README.md +++ b/README.md @@ -128,12 +128,6 @@ Our infrastructure uses a two-tier network model to enhance security and isolate - These networks are not directly accessible from the internet and provide secure communication between public and internal services. - Examples: backend_network, database_network, etc. -Service Network Configuration: -- Frontend: Connected to proxy_network and backend_network -- Backend API: Connected to backend_network and database_network -- Database: Connected only to database_network -- Traefik: Connected only to proxy_network - This structure ensures that: - The proxy (Traefik) can route traffic to public-facing services. - Internal services (like databases) are not directly accessible from the proxy network. @@ -163,7 +157,7 @@ The `volumes/` folder contains subdirectories for different volumes used by vari Each subdirectory corresponds to a specific service or group of services, containing the persistent data that needs to be preserved across container restarts or redeployments. -When configuring Docker Compose files, reference these volume paths to ensure data persistence. For example: +When configuring Docker Compose files, reference these volume paths to ensure data persistence. ```yaml volumes: diff --git a/apps/develop/adminer/docker-compose.yml b/apps/develop/adminer/docker-compose.yml new file mode 100644 index 0000000..ac70ed9 --- /dev/null +++ b/apps/develop/adminer/docker-compose.yml @@ -0,0 +1,20 @@ +services: + adminer: + profiles: ["all", "database", "backend", "adminer", "app"] + image: adminer + container_name: ${INFRASTRUCTURE_LABEL:-default}-adminer-${ENVIRONMENT:-development} + restart: always + ports: + - ${ADMINER_PORT:-0}:8080 + networks: + - database + - proxy + labels: + - "traefik.enable=${TRAEFIK_ENABLE:-false}" + - "traefik.http.routers.${INFRASTRUCTURE_LABEL:-default}_adminer.entrypoints=${TRAEFIK_ENTRYPOINT:-websecure}" + - "traefik.http.routers.${INFRASTRUCTURE_LABEL:-default}_adminer.rule=Host(`${ADMINER_DOMAIN}`)" + - "traefik.http.routers.${INFRASTRUCTURE_LABEL:-default}_adminer.tls=true" + - "traefik.http.routers.${INFRASTRUCTURE_LABEL:-default}_adminer.tls.certresolver=${TRAEFIK_CERT_RESOLVER:-http_resolver}" + - 'traefik.http.routers.${INFRASTRUCTURE_LABEL:-default}_adminer.service=adminer' + - "traefik.http.adminer.cloud.loadbalancer.server.port=8080" + - "traefik.docker.network=${TRAEFIK_NETWORK:-default}" \ No newline at end of file diff --git a/apps/develop/gitea/docker-compose.yml b/apps/develop/gitea/docker-compose.yml index 344052b..5591389 100644 --- a/apps/develop/gitea/docker-compose.yml +++ b/apps/develop/gitea/docker-compose.yml @@ -11,7 +11,7 @@ services: depends_on: - gitea_db labels: - - "traefik.enable=${TRAEFIK_ENABLE}" + - "traefik.enable=${TRAEFIK_ENABLE:-false}" - "traefik.http.routers.gitea.entrypoints=${TRAEFIK_ENTRYPOINT}" - "traefik.http.routers.gitea.rule=(Host(`${GITEA_DOMAIN})`)" - "traefik.http.routers.gitea.tls=true"