Skip to content

Commit

Permalink
Merge pull request #739 from EdiWang/Anduin2017-patch-1
Browse files Browse the repository at this point in the history
Create docker-compose.yml to one click start up.
  • Loading branch information
EdiWang authored Aug 2, 2023
2 parents 27bb44e + a1d1e36 commit 88519f8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
version: '3'
services:
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: ROOT_SUPER_EVIL_PASSWORD@1234
MYSQL_DATABASE: AppDatabase
MYSQL_USER: WebApp
MYSQL_PASSWORD: WebApp@Passw0rd
ports:
- "3306:3306"
web:
build: .
environment:
ConnectionStrings__MoongladeDatabase: "Server=db;Database=AppDatabase;Uid=WebApp;Pwd=WebApp@Passw0rd;"
ConnectionStrings__DatabaseType: "MySQL"
ports:
- "8080:80"
depends_on:
- db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 5

0 comments on commit 88519f8

Please sign in to comment.