Skip to content

Commit 4193248

Browse files
Update docker-compose.yaml
1 parent 17f97fb commit 4193248

1 file changed

Lines changed: 17 additions & 22 deletions

File tree

docker-compose.yaml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
restart: always
88
depends_on:
99
- redis
10-
- postgres
10+
- evolution-postgres
1111
ports:
1212
- "8080:8080"
1313
volumes:
@@ -21,48 +21,43 @@ services:
2121
- "8080"
2222

2323
redis:
24+
container_name: evolution_redis
2425
image: redis:latest
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"
32-
expose:
33-
- "6379"
3431
networks:
3532
- evolution-net
3633
- dokploy-network
34+
expose:
35+
- "6379"
3736

38-
postgres:
39-
container_name: postgres
37+
evolution-postgres:
38+
container_name: evolution_postgres
4039
image: postgres:15
40+
restart: always
41+
env_file:
42+
- .env
4143
command:
4244
- postgres
4345
- -c
4446
- max_connections=1000
4547
- -c
4648
- listen_addresses=*
47-
restart: always
48-
ports:
49-
- "5432:5432"
5049
environment:
51-
- POSTGRES_DB=${POSTGRES_DATABASE}
52-
- POSTGRES_USER=${POSTGRES_USERNAME}
53-
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
54-
- POSTGRES_HOST_AUTH_METHOD=trust
50+
POSTGRES_DB: ${POSTGRES_DATABASE}
51+
POSTGRES_USER: ${POSTGRES_USERNAME}
52+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
53+
POSTGRES_HOST_AUTH_METHOD: trust
5554
volumes:
5655
- postgres_data:/var/lib/postgresql/data
56+
networks:
57+
- evolution-net
58+
- dokploy-network
5759
expose:
5860
- "5432"
59-
networks:
60-
evolution-net:
61-
aliases:
62-
- evolution-postgres
63-
dokploy-network:
64-
aliases:
65-
- evolution-postgres
6661

6762
volumes:
6863
evolution_instances:

0 commit comments

Comments
 (0)