mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 12:49:43 +02:00
39 lines
890 B
YAML
39 lines
890 B
YAML
version: '3'
|
|
|
|
services:
|
|
planka:
|
|
image: meltyshev/planka:latest
|
|
command: >
|
|
bash -c
|
|
"for i in `seq 1 30`; do
|
|
npm start &&
|
|
s=$$? && break || s=$$?;
|
|
echo \"Tried $$i times. Waiting 5 seconds...\";
|
|
sleep 5;
|
|
done; (exit $$s)"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- user-avatars:/app/public/user-avatars
|
|
- attachments:/app/public/attachments
|
|
ports:
|
|
- 3000:1337
|
|
environment:
|
|
- BASE_URL=http://localhost:3000
|
|
- DATABASE_URL=postgresql://postgres@postgres/planka
|
|
- SECRET_KEY=notsecretkey
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:alpine
|
|
restart: unless-stopped
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=planka
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
|
|
volumes:
|
|
user-avatars:
|
|
attachments:
|
|
db-data:
|