added persistence volumes

This commit is contained in:
Brian Long 2021-01-13 15:30:34 -05:00
parent 8a0ccc61a5
commit 7caee29b23

View File

@ -24,16 +24,21 @@ services:
- activiti-app - activiti-app
volumes: volumes:
- ./activiti-admin.properties:/usr/local/tomcat/lib/activiti-admin.properties - ./activiti-admin.properties:/usr/local/tomcat/lib/activiti-admin.properties
- apsapp-volume:/var/lib/postgresql/data:rw
postgres-aps: postgres-aps:
image: postgres:latest image: postgres:latest
environment: environment:
POSTGRES_DB: activiti POSTGRES_DB: activiti
volumes:
- apsdb-volume:/var/lib/postgresql/data:rw
postgres-aps-admin: postgres-aps-admin:
image: postgres:latest image: postgres:latest
environment: environment:
POSTGRES_DB: activiti-admin POSTGRES_DB: activiti-admin
volumes:
- apsadmindb-volume:/var/lib/postgresql/data:rw
search-aps: search-aps:
image: elasticsearch:latest image: elasticsearch:latest
@ -45,6 +50,8 @@ services:
hard: -1 hard: -1
depends_on: depends_on:
- activit-app - activit-app
volumes:
- esindex-volume:/var/lib/postgresql/data:rw
proxy: proxy:
build: ./nginx-ingress build: ./nginx-ingress
@ -54,3 +61,13 @@ services:
depends_on: depends_on:
- activiti-app - activiti-app
- activiti-admin - activiti-admin
volumes:
apsbin-volume:
driver: local
apsdb-volume:
driver: local
apsadmindb-volume:
driver: local
esindex-volume:
driver: local