forked from EvolutionAPI/evolution-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
63 lines (58 loc) · 1.32 KB
/
docker-compose.yaml
File metadata and controls
63 lines (58 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
services:
api:
container_name: evolution_api_${ENVIROMNENT}
build: .
image: adaptweb/evolution-api:1.7.1
restart: always
depends_on:
- redis
- postgres
ports:
- ${MIRROR_PORT}:8080
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- evolution_instances:/evolution/instances
networks:
- evolution-net
env_file:
- .env
expose:
- ${MIRROR_PORT}
redis:
image: redis:latest
networks:
- evolution-net
container_name: redis_${ENVIROMNENT}
command: >
redis-server --port 11235 --appendonly yes
volumes:
- evolution_redis:/data
ports:
- ${REDIS_PORT}:11235
postgres:
container_name: postgres_${ENVIROMNENT}
image: postgres:15
networks:
- evolution-net
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
restart: always
ports:
- ${DATABASE_PORT}:11234
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=evolution
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres_data:/var/lib/postgresql/data
expose:
- ${DATABASE_PORT}
volumes:
evolution_instances:
evolution_redis:
postgres_data:
networks:
evolution-net:
name: evolution-net
driver: bridge