35 lines
689 B
YAML
35 lines
689 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
screenshot-service:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: screenshot_service_local
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5955:5955"
|
|
environment:
|
|
- PORT=5955
|
|
- HOST=0.0.0.0
|
|
- USE_SSL=false
|
|
- OUTPUT_DIR=/var/www/html/images/
|
|
- BASE_URL=http://localhost:5955/
|
|
- VIEWPORT_WIDTH=1366
|
|
- VIEWPORT_HEIGHT=1100
|
|
- WAIT_TIME=10000
|
|
volumes:
|
|
- ./:/app
|
|
- screenshot_images:/var/www/html/images
|
|
- /app/node_modules
|
|
networks:
|
|
- screenshot-local
|
|
|
|
volumes:
|
|
screenshot_images:
|
|
driver: local
|
|
|
|
networks:
|
|
screenshot-local:
|
|
driver: bridge
|