fix: introduced aether_shared_net to allow isolated stacks to reach shared DB/Redis.
This commit is contained in:
@@ -2,6 +2,9 @@ services:
|
||||
web:
|
||||
restart: unless-stopped
|
||||
container_name: ${CONTAINER_WEB}
|
||||
networks:
|
||||
- default
|
||||
- shared
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: aether_nginx.Dockerfile
|
||||
@@ -48,6 +51,9 @@ services:
|
||||
restart: always
|
||||
container_name: ${CONTAINER_REDIS}
|
||||
image: redis
|
||||
networks:
|
||||
- default
|
||||
- shared
|
||||
command: redis-server --save "" --loglevel warning
|
||||
logging:
|
||||
driver: "json-file"
|
||||
@@ -60,6 +66,8 @@ services:
|
||||
image: mariadb:10.11
|
||||
container_name: ae_mariadb_dev
|
||||
profiles: ["database"]
|
||||
networks:
|
||||
- shared
|
||||
command: [
|
||||
"mysqld",
|
||||
"--max-connections=${MARIADB_MAX_CONNECTIONS}",
|
||||
@@ -90,6 +98,8 @@ services:
|
||||
image: phpmyadmin/phpmyadmin
|
||||
container_name: ae_pma_dev
|
||||
profiles: ["database"]
|
||||
networks:
|
||||
- shared
|
||||
environment:
|
||||
PMA_HOST: mariadb
|
||||
UPLOAD_LIMIT: 64M
|
||||
@@ -109,6 +119,9 @@ services:
|
||||
context: ${AE_API_SRC}
|
||||
dockerfile: Dockerfile
|
||||
scale: ${AE_API_REPLICAS}
|
||||
networks:
|
||||
- default
|
||||
- shared
|
||||
env_file:
|
||||
- ./.env
|
||||
extra_hosts:
|
||||
@@ -144,6 +157,9 @@ services:
|
||||
args:
|
||||
BUILD_MODE: ${AE_APP_BUILD_MODE:-staging}
|
||||
scale: ${AE_APP_REPLICAS:-1}
|
||||
networks:
|
||||
- default
|
||||
- shared
|
||||
env_file:
|
||||
- ./.env
|
||||
# No host ports — ae_web_dev proxies to ae_app:3000 via Docker DNS,
|
||||
@@ -228,6 +244,8 @@ services:
|
||||
image: alpine:latest
|
||||
restart: always
|
||||
profiles: ["database"]
|
||||
networks:
|
||||
- shared
|
||||
env_file:
|
||||
- ./.env
|
||||
volumes:
|
||||
@@ -248,3 +266,6 @@ services:
|
||||
networks:
|
||||
default:
|
||||
name: ${AE_NETWORK_NAME:-ae_dev_net}
|
||||
shared:
|
||||
name: aether_shared_net
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user