[Update] docker container version

This commit is contained in:
Baghaztra 2025-10-22 08:57:12 +07:00
parent 9e7ef1b825
commit a37102c3ae
2 changed files with 12 additions and 11 deletions

View File

@ -142,7 +142,7 @@ docker compose --env-file .env.production up -d --build
docker exec -it abbauf_kasir_app php artisan migrate --seed
# Atau import database secara manual
docker exec -i abbauf_kasir_db mysql -u kasir_user -pkasir_password kasir_db < ./toko_emas.sql
docker exec -i abbauf_kasir_db mysql -u kasir_user -pkasir_password kasir_db < ./storage/toko_emas.sql
# Periksa database (opsional)
docker exec -it abbauf_kasir_db bash

View File

@ -1,4 +1,4 @@
version: '3.8'
version: '3.9'
services:
# ========================================
@ -61,7 +61,7 @@ services:
container_name: abbauf_kasir_nginx
restart: unless-stopped
ports:
- "${APP_PORT:-80}:80"
- "81:80"
volumes:
# Nginx configuration
- ./nginx.conf:/etc/nginx/conf.d/default.conf
@ -83,7 +83,8 @@ services:
# MySQL Database
# ========================================
mysql:
image: mysql:8.4
# image: mysql:8.4
image: mariadb:10.6
container_name: abbauf_kasir_db
restart: unless-stopped
environment:
@ -94,18 +95,18 @@ services:
MYSQL_CHARACTER_SET_SERVER: utf8mb4
MYSQL_COLLATION_SERVER: utf8mb4_unicode_ci
ports:
- "${DB_PORT:-3306}:3306"
- "3308:3306"
volumes:
- mysql_data:/var/lib/mysql
# Optional: backup folder
- ./docker/mysql/backups:/backups
networks:
- kasir_network
# healthcheck:
# test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${MYSQL_ROOT_PASSWORD:-root_secret_password}"]
# interval: 10s
# timeout: 5s
# retries: 5
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${MYSQL_ROOT_PASSWORD:-root_secret_password}"]
interval: 10s
timeout: 5s
retries: 5
# command: --default-authentication-plugin=mysql_native_password
# ========================================
@ -116,7 +117,7 @@ services:
container_name: abbauf_kasir_redis
restart: unless-stopped
ports:
- "${REDIS_PORT:-6379}:6379"
- "6380:6379"
volumes:
- redis_data:/data
networks: