Repository navigation
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
67 lines (62 loc) · 1.84 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
67 lines (62 loc) · 1.84 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: hackbank-ui
services:
audio:
image: python:3.12-slim
volumes:
- ./audio_control.py:/app/audio_control.py:ro
- ./www/sounds/POS/command/KDE_Beep_ClassicBeep.wav:/app/www/sounds/POS/command/KDE_Beep_ClassicBeep.wav:ro
- audio-runtime:/run/hackbank-audio
command: ["python", "/app/audio_control.py", "--demo"]
# Match www-data in the PHP development container.
user: "0:33"
mqtt:
image: eclipse-mosquitto:2
volumes:
- ./dev/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
healthcheck:
test: ["CMD", "mosquitto_pub", "-h", "localhost", "-t", "dev/health", "-m", "ok"]
interval: 2s
timeout: 2s
retries: 15
backend:
build:
context: .
dockerfile: dev/Dockerfile
working_dir: /app
volumes:
- ./kassa.py:/app/kassa.py:ro
- ./config.py:/app/config.py:ro
- ./input_validation.py:/app/input_validation.py:ro
- ./purchase_history.py:/app/purchase_history.py:ro
- ./pos_sound_settings.py:/app/pos_sound_settings.py:ro
- ./button_themes.py:/app/button_themes.py:ro
- ./epc_payment.py:/app/epc_payment.py:ro
- ./www/sounds:/app/www/sounds:ro
- ./plugins:/app/plugins:ro
- ./images:/app/images:ro
- ./fakedata:/app/fakedata:ro
- ./dev:/app/dev:ro
- ./dev/data:/app/data
environment:
KASSA_CONFIG: /app/dev/config.yaml
PYTHONDONTWRITEBYTECODE: "1"
command: ["sh", "/app/dev/start.sh"]
depends_on:
mqtt:
condition: service_healthy
web:
image: php:8.3-apache
volumes:
- ./www:/var/www/html:ro
- audio-runtime:/run/hackbank-audio:ro
ports:
- "127.0.0.1:4123:80"
environment:
MQTT_HOST: mqtt
depends_on:
mqtt:
condition: service_healthy
audio:
condition: service_started
volumes:
audio-runtime: