Removed old Dockerfile, added volume name
This commit is contained in:
@@ -1,29 +0,0 @@
|
|||||||
---
|
|
||||||
services:
|
|
||||||
krawl:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
container_name: krawl-server
|
|
||||||
ports:
|
|
||||||
- "5000:5000"
|
|
||||||
environment:
|
|
||||||
- CONFIG_LOCATION=config.yaml
|
|
||||||
# set this to change timezone, alternatively mount /etc/timezone or /etc/localtime based on the time system management of the host environment
|
|
||||||
#- TZ=${TZ}
|
|
||||||
volumes:
|
|
||||||
- ./wordlists.json:/app/wordlists.json:ro
|
|
||||||
- ./config.yaml:/app/config.yaml:ro
|
|
||||||
- ./logs:/app/logs
|
|
||||||
- ./exports:/app/exports
|
|
||||||
- ./data:/app/data
|
|
||||||
restart: unless-stopped
|
|
||||||
develop:
|
|
||||||
watch:
|
|
||||||
- path: ./Dockerfile
|
|
||||||
action: rebuild
|
|
||||||
- path: ./src/
|
|
||||||
action: sync+restart
|
|
||||||
target: /app/src
|
|
||||||
- path: ./docker-compose-dev.yaml
|
|
||||||
action: rebuild
|
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
version: '3.8'
|
---
|
||||||
|
|
||||||
services:
|
services:
|
||||||
krawl:
|
krawl:
|
||||||
build:
|
build:
|
||||||
@@ -8,11 +7,26 @@ services:
|
|||||||
container_name: krawl-server
|
container_name: krawl-server
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
|
environment:
|
||||||
|
- CONFIG_LOCATION=config.yaml
|
||||||
|
# set this to change timezone, alternatively mount /etc/timezone or /etc/localtime based on the time system management of the host environment
|
||||||
|
# - TZ=${TZ}
|
||||||
volumes:
|
volumes:
|
||||||
- ./wordlists.json:/app/wordlists.json:ro
|
- ./wordlists.json:/app/wordlists.json:ro
|
||||||
- ./config.yaml:/app/config.yaml:ro
|
- ./config.yaml:/app/config.yaml:ro
|
||||||
- ./logs:/app/logs
|
- ./logs:/app/logs
|
||||||
- ./exports:/app/exports
|
- ./exports:/app/exports
|
||||||
environment:
|
- data:/app/data
|
||||||
- CONFIG_LOCATION=config.yaml
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
develop:
|
||||||
|
watch:
|
||||||
|
- path: ./Dockerfile
|
||||||
|
action: rebuild
|
||||||
|
- path: ./src/
|
||||||
|
action: sync+restart
|
||||||
|
target: /app/src
|
||||||
|
- path: ./docker-compose.yaml
|
||||||
|
action: rebuild
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
data:
|
||||||
|
|||||||
Reference in New Issue
Block a user