mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 04:22:02 -06:00
Adding container physical limits
This commit is contained in:
parent
c83e6828c9
commit
2817268857
@ -23,12 +23,19 @@ services:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- evolution_instances:/evolution/instances
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1G
|
||||
cpus: '1.5'
|
||||
networks:
|
||||
- evolution-net
|
||||
env_file:
|
||||
- .env
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
expose:
|
||||
- 8080
|
||||
|
||||
redis:
|
||||
image: redis:7.4.2-alpine
|
||||
@ -48,6 +55,11 @@ services:
|
||||
- evolution-net
|
||||
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
|
||||
restart: always
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 1G
|
||||
cpus: '1.5'
|
||||
environment:
|
||||
- POSTGRES_USER=user
|
||||
- POSTGRES_PASSWORD=nGYh5UIg4cg9Xwec1AeJ
|
||||
|
Loading…
Reference in New Issue
Block a user