Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions blueprints/opensourcepos/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: "3.8"

services:
opensourcepos:
image: jekkos/opensourcepos:master
restart: unless-stopped
depends_on:
opensourcepos-db:
condition: service_healthy
expose:
- "80"
environment:
CI_ENVIRONMENT: production
ALLOWED_HOSTNAMES: ${ALLOWED_HOSTNAMES}
FORCE_HTTPS: ${FORCE_HTTPS}
PHP_TIMEZONE: ${PHP_TIMEZONE}
MYSQL_USERNAME: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DB_NAME: ${MYSQL_DATABASE}
MYSQL_HOST_NAME: opensourcepos-db
volumes:
- opensourcepos-uploads:/app/public/uploads
- opensourcepos-logs:/app/writable/logs

opensourcepos-db:
image: mariadb:10.11
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- opensourcepos-db:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "healthcheck.sh --connect --innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s

volumes:
opensourcepos-db:
opensourcepos-uploads:
opensourcepos-logs:
9 changes: 9 additions & 0 deletions blueprints/opensourcepos/opensourcepos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions blueprints/opensourcepos/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[variables]
main_domain = "${domain}"
mysql_root_password = "${password:32}"
mysql_password = "${password:32}"
php_timezone = "UTC"
force_https = "false"
allowed_hostnames = "${main_domain}"

[[config.domains]]
serviceName = "opensourcepos"
port = 80
host = "${main_domain}"
path = "/"

[[config.mounts]]
filePath = "README.md"
content = """# OpenSourcePOS

This template deploys Open Source Point of Sale with MariaDB using the upstream Docker image and persistent storage for uploads, logs, and database data.

## Access

- URL: `http://${main_domain}`
- Default application user: `admin`
- Default application password: `pointofsale`

Change the default application password immediately after the first login.

## Hostnames and HTTPS

OpenSourcePOS validates incoming host headers in production. The `allowed_hostnames` variable defaults to `${main_domain}` and can be set to a comma-separated list such as `pos.example.com,www.pos.example.com`.

The template defaults `force_https` to `false` because Dokploy terminates TLS outside the container. Set it to `true` only when your deployment always reaches OpenSourcePOS through HTTPS and the reverse proxy sends the expected headers.

## Storage

The template creates persistent volumes for:

- MariaDB data
- uploaded files
- application logs
"""

[config.env]
MYSQL_ROOT_PASSWORD = "${mysql_root_password}"
MYSQL_DATABASE = "ospos"
MYSQL_USER = "admin"
MYSQL_PASSWORD = "${mysql_password}"
PHP_TIMEZONE = "${php_timezone}"
FORCE_HTTPS = "${force_https}"
ALLOWED_HOSTNAMES = "${allowed_hostnames}"
19 changes: 19 additions & 0 deletions meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4761,6 +4761,25 @@
"nginx"
]
},
{
"id": "opensourcepos",
"name": "OpenSourcePOS",
"version": "master",
"description": "OpenSourcePOS is a web-based point of sale system for managing sales, inventory, customers, and reports.",
"logo": "opensourcepos.svg",
"links": {
"github": "https://github.com/opensourcepos/opensourcepos",
"website": "https://opensourcepos.org/",
"docs": "https://github.com/opensourcepos/opensourcepos/blob/master/README.md"
},
"tags": [
"pos",
"retail",
"inventory",
"sales",
"business"
]
},
{
"id": "openspeedtest",
"name": "OpenSpeedTest",
Expand Down
Loading