websoft9/source/docker
2023-11-24 17:06:35 +08:00
..
apphub update 2023-11-24 08:40:42 +08:00
deployment update 2023-11-24 08:40:42 +08:00
git update 2023-11-24 08:40:42 +08:00
proxy update 2023-11-24 08:40:42 +08:00
.env update 2023-11-24 08:40:42 +08:00
daemon.json update 2023-11-24 08:40:42 +08:00
docker-compose-dev.yml update apphub 2023-11-24 17:06:35 +08:00
docker-compose.yml update 2023-11-24 08:40:42 +08:00
README.md update 2023-11-24 08:40:42 +08:00

Docker

Test it

All backend services of Websoft9 is packaged to Docker image, just these steps you can running them:

curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && sudo systemctl enable docker && sudo systemctl start docker
sudo docker network create websoft9
wget https://websoft9.github.io/websoft9/docker/.env
wget https://websoft9.github.io/websoft9/docker/docker-compose.yml
sudo docker compose -p websoft9 up -d

If you want only want to change to development, you should execute following commands:

sudo docker compose -p websoft9 down -v
wget https://websoft9.github.io/websoft9/docker/docker-compose-dev.yml
# /data/source is development sources path in host
docker compose -f docker-compose-dev.yml -p websoft9 up -d --build

Develop it

The folder apphub, deployment, git, proxy stored development files, and used for:

  • Optimize dockerfile
  • Release version
  • Build docker image by Githuh action