File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,3 +10,7 @@ DB_PASSWORD=mlite
1010# Application Configuration
1111# APP_PORT=8080 # gunakan jika ingin mengakses nginx dari luar container
1212# DB_EXTERNAL_PORT=3308 # gunakan jika ingin mengakses mysql dari luar container
13+
14+ # Docker Compose Profiles
15+ # Biarkan kosong jika menggunakan SQLite. Isi dengan 'mysql_enabled' jika ingin menggunakan container MySQL
16+ COMPOSE_PROFILES =
Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ services:
3434 - ../:/var/www/html/
3535 - ../backups:/var/www/html/backups
3636 - ../uploads:/var/www/html/uploads
37- depends_on :
38- - mysql
3937 command : sh -c "mkdir -p /var/www/html/backups /var/www/html/uploads /var/www/html/tmp /var/www/html/admin/tmp && chmod -R 777 /var/www/html/backups /var/www/html/uploads /var/www/html/tmp /var/www/html/admin/tmp && php-fpm"
4038
4139 mysql :
4240 image : mysql:8.0
4341 command : --sql-mode=""
4442 restart : always
43+ profiles :
44+ - mysql_enabled
4545 environment :
4646 MYSQL_ROOT_PASSWORD : ${DB_ROOT_PASSWORD}
4747 MYSQL_DATABASE : ${DB_DATABASE}
You can’t perform that action at this time.
0 commit comments