diff --git a/docker-compose.yml b/docker-compose.yml index 1147ef27b..bee3eb24d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,15 +1,14 @@ -version: '3' +version: "3.9" services: caldera: build: context: . - dockerfile: Dockerfile args: TZ: "UTC" # Timezone to use in container - VARIANT: "full" + VARIANT: "full" # full install: plugins, agents, docs, etc. image: caldera:latest - container_name: caldera + command: --log DEBUG ports: - "8888:8888" - "8443:8443" @@ -20,6 +19,8 @@ services: - "8022:8022" - "2222:2222" volumes: - - ./:/usr/src/app - - /usr/src/app/plugins/magma # Anonymous volume to preserve built UI assets from being overwritten by host mount - command: --log DEBUG + # keeps operation data & uploaded files between runs + - caldera-data:/usr/src/app/data + +volumes: + caldera-data: