Add Docker Compose deployment setup
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
.gitignore
|
||||
.codex
|
||||
.agents
|
||||
.env
|
||||
*.rar
|
||||
*.zip
|
||||
*.7z
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
DB_ROOT_PASSWORD=change_this_password
|
||||
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- database
|
||||
environment:
|
||||
DB_HOST: database
|
||||
DB_USER: root
|
||||
DB_PASSWORD: ${DB_ROOT_PASSWORD:-rootpassword}
|
||||
DB_NAME: webgis_kemiskinan
|
||||
SPBU_DB_NAME: db_spbu
|
||||
WEBGIS02_DB_NAME: webgis_db
|
||||
DB_CHAR: utf8mb4
|
||||
expose:
|
||||
- "80"
|
||||
restart: unless-stopped
|
||||
|
||||
database:
|
||||
image: mariadb:10.11
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-rootpassword}
|
||||
volumes:
|
||||
- database_data:/var/lib/mysql
|
||||
- ./setup_databases.sql:/docker-entrypoint-initdb.d/01-combine-webgis.sql:ro
|
||||
- ./webgis-v3/sql/schema.sql:/docker-entrypoint-initdb.d/02-webgis-v3.sql:ro
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
database_data:
|
||||
Reference in New Issue
Block a user