Skip to content

Commit 296f8a6

Browse files
Refactor container names and parameterize ports
1 parent 1255200 commit 296f8a6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docker-compose.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
version: "3.8"
2-
31
services:
4-
evolution-api: # <- antes era "api"
5-
container_name: evolution_api
2+
evolution-api:
3+
container_name: thae_evolution_api
64
image: evoapicloud/evolution-api:latest
75
restart: always
86
depends_on:
97
- redis
108
- evolution-postgres
119
ports:
12-
- "127.0.0.1:8080:8080"
10+
- "127.0.0.1:${PORT:-8080}:8080" # Usa la variable PORT o 8080 por defecto
1311
volumes:
1412
- evolution_instances:/evolution/instances
1513
networks:
@@ -21,17 +19,19 @@ services:
2119
- "8080"
2220

2321
frontend:
22+
container_name: thae_evolution_frontend
2423
image: evoapicloud/evolution-manager:latest
2524
restart: always
2625
ports:
27-
- "3001:80"
26+
- "${FRONTEND_PORT:-3001}:80" # También puedes parametrizar el frontend
2827
volumes:
2928
- ./nginx.evolution.conf:/etc/nginx/conf.d/nginx.conf:ro
3029
networks:
3130
- evolution-net
31+
- dokploy-network
3232

3333
redis:
34-
container_name: evolution_redis
34+
container_name: thae_evolution_redis
3535
image: redis:latest
3636
restart: always
3737
command: >
@@ -49,7 +49,7 @@ services:
4949
- "6379"
5050

5151
evolution-postgres:
52-
container_name: evolution_postgres
52+
container_name: thae_evolution_postgres
5353
image: postgres:15
5454
restart: always
5555
env_file:
@@ -81,5 +81,6 @@ networks:
8181
evolution-net:
8282
name: evolution-net
8383
driver: bridge
84+
external: true
8485
dokploy-network:
8586
external: true

0 commit comments

Comments
 (0)