xxxxxxxxxx
version: "3.3"
services:
db:
image: mysql
platform: linux/amd64
restart: always
container_name: mysql-db-users
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_DATABASE: 'userDb'
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin
restart: always
container_name: php-my-admin-users
ports:
- "8081:80"
xxxxxxxxxx
docker ps # current containers
docker run # create and start the container
docker create # create container
docker exec # to run commands in container for once
docker volume # create a docker volume
docker network # create a docker network
docker rm # remove container
docker images # list the images
docker rmi # remove image
docker build # build a new image from dockerfile
docker push # push your image to docker repo
docker pull # download an image from docker repo
docker commit # create an image from container
xxxxxxxxxx
docker build #Build an image from a Dockerfile.
docker pull #Pull an image or a repository from a registry.
docker push #Push an image or a repository to a registry.
docker run #Run a container from an image.
docker ps #List running containers.
docker ps -a #List all containers (including stopped ones).
docker stop #Stop one or more running containers.
docker start #Start one or more stopped containers.
docker restart #Restart a running or stopped container.
docker exec #Execute a command in a running container.
docker logs #View logs from a container.
docker images #List images on your system.
docker rmi #Remove one or more images.
docker volume ls #List volumes.
docker network ls #List networks.
docker-compose #Manage multi-container applications with Docker Compose.
docker inspect #View detailed information about a container, image, volume, or network.
docker-compose up #Create and start containers defined in a docker-compose.yml file.
docker-compose down #Stop and remove containers defined in a docker-compose.yml file.
docker-compose build --no-cache #build docker with no cache
docker compose up #run docker
docker system prune #remove images and container
docker exec -it image_name #to access image's command line
Planka Alternative Trello SelfHosted
xxxxxxxxxx
version: '3'
services:
planka:
image: ghcr.io/plankanban/planka:latest
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/private/attachments
ports:
- 3000:1337
environment:
- BASE_URL=http://localhost:3000
- TRUST_PROXY=0
- DATABASE_URL=postgresql://postgres@postgres/planka
- SECRET_KEY=notsecretkey
# related: https://github.com/knex/knex/issues/2354
# As knex does not pass query parameters from the connection string we
# have to use environment variables in order to pass the desired values, e.g.
# - PGSSLMODE=<value>
# Configure knex to accept SSL certificates
# - KNEX_REJECT_UNAUTHORIZED_SSL_CERTIFICATE=false
depends_on:
- postgres
postgres:
image: postgres:14-alpine
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:
xxxxxxxxxx
$ docker-compose -f docker-compose.yml -f docker-compose.admin.yml run backup_db
xxxxxxxxxx
FROM risingstack/alpine:3.3-v4.2.6-1.1.3
COPY package.json package.json
RUN npm install
# Add your source files
COPY . .
CMD ["npm","start"]
xxxxxxxxxx
docker run -d -n riscv -p 6080:80 -e USER=riscv -e PASSWORD=riscv -e RESOLUTION=1920x1080 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
xxxxxxxxxx
.user(id, options) //Scrape posts from a specific user (Promise)
.hashtag(id, options) //Scrape posts from hashtag section (Promise)
.trend('', options) // Scrape posts from a trends section (Promise)
.music(id, options) // Scrape posts by music id (Promise)
.userEvent(id, options) //Scrape posts from a specific user (Event)
.hashtagEvent(id, options) //Scrape posts from hashtag section (Event)
.trendEvent('', options) // Scrape posts from a trends section (Event)
.musicEvent(id, options) // Scrape posts by music id (Event)
.getUserProfileInfo('USERNAME', options) // Get user profile information
.getHashtagInfo('HASHTAG', options) // Get hashtag information
.signUrl('URL', options) // Get signature for the request
.getVideoMeta('WEB_VIDEO_URL', options) // Get video meta info, including video url without the watermark
.getMusicInfo('https://www.tiktok.com/music/original-sound-6801885499343571718', options) // Get music metadata