Skip to content

Commit f7e7a6c

Browse files
Update docker-compose.yaml
1 parent b35b33c commit f7e7a6c

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

docker-compose.yaml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: "3.8"
2+
13
services:
24
api:
35
container_name: evolution_api
@@ -7,37 +9,44 @@ services:
79
- redis
810
- postgres
911
ports:
10-
- 8080:8080
12+
- "8080:8080"
1113
volumes:
1214
- evolution_instances:/evolution/instances
1315
networks:
1416
- evolution-net
17+
- dokploy-network
1518
env_file:
1619
- .env
1720
expose:
18-
- 8080
21+
- "8080"
1922

2023
redis:
2124
image: redis:latest
22-
networks:
23-
- evolution-net
2425
container_name: redis
2526
command: >
2627
redis-server --port 6379 --appendonly yes
2728
volumes:
2829
- evolution_redis:/data
2930
ports:
30-
- 6379:6379
31+
- "6379:6379"
32+
expose:
33+
- "6379"
34+
networks:
35+
- evolution-net
36+
- dokploy-network
3137

3238
postgres:
3339
container_name: postgres
3440
image: postgres:15
35-
networks:
36-
- evolution-net
37-
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
41+
command:
42+
- postgres
43+
- -c
44+
- max_connections=1000
45+
- -c
46+
- listen_addresses=*
3847
restart: always
3948
ports:
40-
- 5432:5432
49+
- "5432:5432"
4150
environment:
4251
- POSTGRES_DB=${POSTGRES_DATABASE}
4352
- POSTGRES_USER=${POSTGRES_USERNAME}
@@ -46,15 +55,19 @@ services:
4655
volumes:
4756
- postgres_data:/var/lib/postgresql/data
4857
expose:
49-
- 5432
58+
- "5432"
59+
networks:
60+
- evolution-net
61+
- dokploy-network
5062

5163
volumes:
5264
evolution_instances:
5365
evolution_redis:
5466
postgres_data:
5567

56-
5768
networks:
5869
evolution-net:
5970
name: evolution-net
6071
driver: bridge
72+
dokploy-network:
73+
external: true

0 commit comments

Comments
 (0)