add all project files
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
environment:
|
||||
- DB_HOST=db
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
restart: always
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: fira123
|
||||
MYSQL_DATABASE: webgis
|
||||
ports:
|
||||
- "3307:3306"
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
# Script ini akan otomatis dijalankan oleh MySQL saat pertama kali menyala (hanya untuk setup awal)
|
||||
- ./WEBGIS/01/api/setup_webgis.sql:/docker-entrypoint-initdb.d/1_setup_webgis.sql
|
||||
- ./webtugas/01/api/setup_webtugas.sql:/docker-entrypoint-initdb.d/2_setup_webtugas.sql
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
Reference in New Issue
Block a user