Testing docker-compose

This commit is contained in:
Judson Cairo 2024-08-29 15:12:36 -03:00
parent 2fc0815e14
commit 011bef3daf

View File

@ -1,23 +1,39 @@
version: '3.3' version: '3.3'
services: services:
api: redis:
container_name: evolution_api image: redis:latest
image: atendai/evolution-api:v2.0.9-rc container_name: redis
restart: always command: >
ports: redis-server --port 6379 --appendonly yes
- 8080:8080
volumes:
- evolution_instances:/evolution/instances
networks: networks:
- evolution-net - evolution-net
env_file: volumes:
- .env - evolution_redis:/data
ports:
- 6379:6379
expose: expose:
- 8080 - 6379
postgres:
container_name: postgres
image: postgres:15
networks:
- evolution-net
command: ["postgres", "-c", "max_connections=1000"]
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=PASSWORD
volumes:
- postgres_data:/var/lib/postgresql/data
expose:
- 5432
volumes: volumes:
evolution_instances: postgres_data:
evolution_redis:
networks: networks:
evolution-net: evolution-net: