25 lines
641 B
YAML
25 lines
641 B
YAML
services:
|
|
drawit:
|
|
image: git.dou.bet/iamdoubz/drawit:latest
|
|
container_name: drawit
|
|
mem_limit: 256M
|
|
restart: always
|
|
ports:
|
|
- "127.0.0.1:3000:3000"
|
|
env_file:
|
|
- .env # Copy .env.example to .env and fill out
|
|
#-stack.env # If using Portainer, this needs to be named `stack.env`
|
|
environment:
|
|
NODE_ENV: production
|
|
PORT: 3000
|
|
volumes:
|
|
- drawit_data:/app/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1"]
|
|
interval: 120s
|
|
timeout: 5s
|
|
retries: 2
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
drawit_data: |