Skip to content

Commit

Permalink
Create docker-compose.yml to one click start up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anduin2017 authored Aug 2, 2023
1 parent 27bb44e commit a1d1e36
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 a1d1e36

Please sign in to comment.