mengembalikan (restore) file docker-compose.yml
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "8084:80"
|
||||||
|
environment:
|
||||||
|
DB_HOST: db
|
||||||
|
DB_USER: webgis
|
||||||
|
DB_PASS: webgis123
|
||||||
|
POVERTY_DB_NAME: webgis_p3
|
||||||
|
SPBU_DB_NAME: webgis_spbu
|
||||||
|
JALAN_DB_NAME: WEB_GIS
|
||||||
|
depends_on:
|
||||||
|
db:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: mysql:8.0
|
||||||
|
environment:
|
||||||
|
MYSQL_ROOT_PASSWORD: root123
|
||||||
|
MYSQL_USER: webgis
|
||||||
|
MYSQL_PASSWORD: webgis123
|
||||||
|
MYSQL_DATABASE: webgis_p3
|
||||||
|
ports:
|
||||||
|
- "3307:3306"
|
||||||
|
volumes:
|
||||||
|
- mysql_data:/var/lib/mysql
|
||||||
|
- ./docker/init-databases.sql:/docker-entrypoint-initdb.d/init.sql:ro
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-proot123"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mysql_data:
|
||||||
Reference in New Issue
Block a user