58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
services:
|
|
app:
|
|
image: ghcr.io/activepieces/activepieces:0.80.1
|
|
container_name: activepieces-app
|
|
restart: unless-stopped
|
|
ports:
|
|
- '8080:80'
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
env_file: .env
|
|
environment:
|
|
- AP_CONTAINER_TYPE=APP
|
|
volumes:
|
|
- ./cache:/usr/src/app/cache
|
|
networks:
|
|
- activepieces
|
|
worker:
|
|
image: ghcr.io/activepieces/activepieces:0.79.0
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- app
|
|
env_file: .env
|
|
environment:
|
|
- AP_CONTAINER_TYPE=WORKER
|
|
deploy:
|
|
replicas: 5
|
|
volumes:
|
|
- ./cache:/usr/src/app/cache
|
|
networks:
|
|
- activepieces
|
|
postgres:
|
|
image: 'postgres:14.4'
|
|
container_name: postgres
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
environment:
|
|
- 'POSTGRES_DB=${AP_POSTGRES_DATABASE}'
|
|
- 'POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD}'
|
|
- 'POSTGRES_USER=${AP_POSTGRES_USERNAME}'
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- activepieces
|
|
redis:
|
|
image: 'redis:7.0.7'
|
|
container_name: redis
|
|
restart: unless-stopped
|
|
volumes:
|
|
- 'redis_data:/data'
|
|
networks:
|
|
- activepieces
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|
|
networks:
|
|
activepieces:
|