Skip to content

Commit a91a4ad

Browse files
Merge pull request #1889 from codingbox2022/main
update version
2 parents 00ba227 + c02d370 commit a91a4ad

File tree

1 file changed

+38
-46
lines changed

1 file changed

+38
-46
lines changed

docker-compose.yaml

Lines changed: 38 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,75 @@
1+
version: "3.8"
2+
13
services:
2-
34
api:
45
container_name: evolution_api
56
image: evoapicloud/evolution-api:latest
67
restart: always
78
depends_on:
89
- redis
9-
- postgres
10+
- evolution-postgres
1011
ports:
11-
- 8080:8080
12+
- "127.0.0.1:8080:8080"
1213
volumes:
1314
- evolution_instances:/evolution/instances
1415
networks:
1516
- evolution-net
17+
- dokploy-network
1618
env_file:
1719
- .env
1820
expose:
19-
- 8080
21+
- "8080"
2022

2123
redis:
24+
container_name: evolution_redis
2225
image: redis:latest
23-
networks:
24-
- evolution-net
25-
container_name: redis
26+
restart: always
2627
command: >
2728
redis-server --port 6379 --appendonly yes
2829
volumes:
2930
- evolution_redis:/data
30-
ports:
31-
- 6379:6379
31+
networks:
32+
evolution-net:
33+
aliases:
34+
- evolution-redis
35+
dokploy-network:
36+
aliases:
37+
- evolution-redis
38+
expose:
39+
- "6379"
3240

33-
postgres:
34-
container_name: postgres
41+
evolution-postgres:
42+
container_name: evolution_postgres
3543
image: postgres:15
36-
networks:
37-
- evolution-net
38-
command: [
39-
"postgres",
40-
"-c", "max_connections=200",
41-
"-c", "listen_addresses=*",
42-
"-c", "shared_buffers=256MB",
43-
"-c", "effective_cache_size=1GB",
44-
"-c", "work_mem=4MB"
45-
]
4644
restart: always
47-
ports:
48-
- 5432:5432
45+
env_file:
46+
- .env
47+
command:
48+
- postgres
49+
- -c
50+
- max_connections=1000
51+
- -c
52+
- listen_addresses=*
4953
environment:
50-
- POSTGRES_USER=user
51-
- POSTGRES_PASSWORD=pass
52-
- POSTGRES_DB=evolution_db
53-
- POSTGRES_HOST_AUTH_METHOD=trust
54+
- POSTGRES_DB=${POSTGRES_DATABASE}
55+
- POSTGRES_USER=${POSTGRES_USERNAME}
56+
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
5457
volumes:
55-
- postgres_data:/var/lib/postgresql/data
56-
57-
# pgbouncer:
58-
# image: edoburu/pgbouncer:latest
59-
# environment:
60-
# DB_HOST: postgres
61-
# DB_USER: user
62-
# DB_PASSWORD: pass
63-
# POOL_MODE: transaction
64-
# AUTH_TYPE: trust
65-
# MAX_CLIENT_CONN: 1000
66-
# DEFAULT_POOL_SIZE: 25
67-
# depends_on:
68-
# - postgres
69-
# ports:
70-
# - "6543:5432"
71-
# networks:
72-
# - evolution-net
58+
- postgres_data:/var/lib/postgresql/data
59+
networks:
60+
- evolution-net
61+
- dokploy-network
62+
expose:
63+
- "5432"
7364

7465
volumes:
7566
evolution_instances:
7667
evolution_redis:
7768
postgres_data:
7869

79-
8070
networks:
8171
evolution-net:
8272
name: evolution-net
8373
driver: bridge
74+
dokploy-network:
75+
external: true

0 commit comments

Comments
 (0)