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