forked from opensourcepos/opensourcepos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.64 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.64 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
47
48
49
50
# =============================================================================
# Silica POS — a rebranded fork of OpenSourcePOS
# =============================================================================
# Quick start:
# docker compose up -d
# open http://localhost:8080/ (login: admin / pointofsale)
#
# On first boot this builds the image, provisions the database (migrations
# run automatically), generates a unique encryption key, and creates one
# admin user — a clean template ready to customize for a company.
#
# Defaults live in .env. To run a second company, just clone the repo into
# another folder, change PORT in its .env, and `docker compose up -d` there.
# =============================================================================
services:
ospos-db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}'
MYSQL_DATABASE: '${MYSQL_DB_NAME}'
MYSQL_USER: '${MYSQL_USERNAME}'
MYSQL_PASSWORD: '${MYSQL_PASSWORD}'
volumes:
- db-data:/var/lib/mysql
ospos-app:
build: .
image: silica-pos:latest
restart: always
ports:
- "${PORT:-8080}:80"
environment:
- CI_ENVIRONMENT=production
- ENCRYPTION_KEY=${ENCRYPTION_KEY:-}
- ALLOWED_HOSTNAMES=${ALLOWED_HOSTNAMES:-}
- MYSQL_HOST_NAME=ospos-db
- MYSQL_USERNAME=${MYSQL_USERNAME}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DB_NAME=${MYSQL_DB_NAME}
- PHP_TIMEZONE=${PHP_TIMEZONE:-UTC}
depends_on:
- ospos-db
volumes:
- app-data:/data # persists the auto-generated encryption key
volumes:
db-data:
app-data: