version: '3'
services:
planka:
image: meltyshev/planka:latest
container_name: planka
command: >
bash -c
"for i in `seq 1 30`; do
./start.sh &&
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
- project-background-images:/app/public/project-background-images
- attachments:/app/public/attachments
ports:
- 1337:1337
environment:
- BASE_URL=https://planka.01ms.ru/
- DATABASE_URL=postgresql://postgres@planka-db/planka
- SECRET_KEY=notsecretkey
depends_on:
- postgres
# labels:
# - traefik.enable=true
# - traefik.http.middlewares.planka-app_https.redirectscheme.scheme=https
# - traefik.http.routers.planka-app.entrypoints=web
# - traefik.http.routers.planka-app.middlewares=planka-app_https@docker
# - traefik.http.routers.planka-app.rule=Host(`planka.{yourdomain}`)
# - traefik.http.routers.planka-app_https.entrypoints=websecure
# - traefik.http.routers.planka-app_https.rule=Host(`planka.{yourdomain}`)
# - traefik.http.routers.planka-app_https.tls=true
# - traefik.http.services.planka-app.loadbalancer.server.port=1337
# - traefik.http.routers.planka-app_https.tls.certresolver=le
postgres:
image: postgres:alpine
container_name: planka-db
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=planka
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
user-avatars:
project-background-images:
attachments:
db-data:
networks:
default:
external:
name: traefik_network