Updated Building a Docker image from scratch (markdown)

master
Luca 2023-07-04 15:37:00 +02:00
rodzic 356ad68efe
commit 1421edb25c
1 zmienionych plików z 1 dodań i 54 usunięć

@ -89,57 +89,4 @@ Docker containers can be configured in multiple ways, here are three different o
A prebuilt image has been published on Docker Hub at [2m0sql/cloudlog](https://hub.docker.com/r/2m0sql/cloudlog) to be pulled and executed on both `arm64` and `amd64` platforms
# Updating the image
To pull new changes you will need to stop the existing instance, rebuild the Cloudlog image and then execute it again.
# Full Docker Compose stack
```yaml
version: '3'
services:
db:
image: mysql:latest
container_name: cloudlog-mysql
environment:
MYSQL_ROOT_PASSWORD: password-segreta
ports:
- "3306:3306"
volumes:
- dbdata:/var/lib/mysql
restart: unless-stopped
phpmyadmin:
image: phpmyadmin:latest
container_name: cloudlog-phpmyadmin
depends_on:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
PMA_USER: root
PMA_PASSWORD: password-segreta
restart: unless-stopped
ports:
- "8083:80"
cloudlog:
image: 2m0sql/cloudlog:latest
container_name: cloudlog-main
depends_on:
- db
volumes:
- cloudlog-config:/var/www/html/application/config
- cloudlog-backup:/var/www/html/application/backup
- cloudlog-uploads:/var/www/html/application/uploads
ports:
- "8086:80"
restart: unless-stopped
volumes:
dbdata:
cloudlog-config:
cloudlog-backup:
cloudlog-uploads:
```
Once the configuration has completed, you can proceed with the normal setup, make sure to access PHPmyAdmin first and create a new user and a DB to store Cloudlog data. During the setup procedure you can use `db` as hostname for MySQL
To pull new changes you will need to stop the existing instance, rebuild the Cloudlog image and then execute it again.