-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
46 lines (42 loc) · 1.24 KB
/
compose.yaml
File metadata and controls
46 lines (42 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: mariadb
x-daemonless:
title: "MariaDB"
icon: ":simple-mariadb:"
category: "Databases"
description: "Drop-in replacement for MySQL built by the original authors — extends core MySQL functionality with alternate storage engines, server optimizations, and patches."
upstream_url: "https://github.com/MariaDB/server"
web_url: "https://mariadb.org/"
freshports_url: "https://www.freshports.org/databases/mariadb118-server/"
user: "bsd"
mlock: false
upstream_binary: false
appjail: true
docs:
env:
MYSQL_ROOT_PASSWORD: "Root password (required on first run)"
MYSQL_DATABASE: "Database to create on first run"
MYSQL_USER: "User to create on first run"
MYSQL_PASSWORD: "Password for MYSQL_USER"
volumes:
/config: "MariaDB configuration and data"
ports:
3306: "MariaDB port"
services:
mariadb:
image: ghcr.io/daemonless/mariadb:latest
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=mydb
- MYSQL_USER=myuser
- MYSQL_PASSWORD=mypassword
volumes:
- mariadb-config:/config
ports:
- "3306:3306"
restart: unless-stopped
volumes:
mariadb-config: