Ajustado el compose para cmpartir red con otros compose

This commit is contained in:
2025-12-30 17:23:20 +01:00
parent 9d1978f62f
commit c451230719
2 changed files with 141 additions and 13 deletions

View File

@@ -1,9 +1,8 @@
name: p-simulador-webhooks name: p-simulador-webhooks
networks: networks:
internal: default:
driver: bridge name: network-test # Tiene que coincidir con el compose objetivo
driver_opts: external: true
com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"
services: services:
p-simulador-webhooks: p-simulador-webhooks:
container_name: p-simulador-webhooks-standalone container_name: p-simulador-webhooks-standalone
@@ -21,12 +20,10 @@ services:
action: rebuild action: rebuild
image: p-simulador-desarrollo-backend image: p-simulador-desarrollo-backend
ports: ports:
- 3000:${PORT} - ${PORT}:${PORT}
env_file: env_file:
- .env - .env
restart: unless-stopped restart: unless-stopped
networks:
- internal
postgresql: postgresql:
image: postgres:16.1 image: postgres:16.1
env_file: env_file:
@@ -42,5 +39,3 @@ services:
retries: 5 retries: 5
start_period: 30s start_period: 30s
timeout: 10s timeout: 10s
networks:
- internal

File diff suppressed because one or more lines are too long