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