forked from Fiestaboard/FiestaBoard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
103 lines (98 loc) · 2.71 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
103 lines (98 loc) · 2.71 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
services:
# FiestaBoard - Single container (API + UI), same as production layout
fiestaboard:
build:
context: .
dockerfile: Dockerfile
container_name: fiestaboard-dev
env_file:
- .env
restart: unless-stopped
ports:
- "4420:3000"
environment:
- PRODUCTION=false
- WATCHPACK_POLLING=true
volumes:
- ./data:/app/data
- ./src:/app/src
- ./plugins:/app/plugins
- ./external_plugins:/app/external_plugins
- ./plugin-registry.json:/app/plugin-registry.json:ro
- ./tests:/app/tests
- ./scripts:/app/scripts
- ./web:/app/web
- web-dev-node-modules:/app/web/node_modules
- ./start-dev.sh:/app/start-dev.sh:ro
- ./supervisord-dev.conf:/app/supervisord-dev.conf:ro
- ./nginx-dev.conf:/app/nginx.http.conf:ro
command: ["/bin/sh", "/app/start-dev.sh"]
networks:
- fiestaboard-dev
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Web - Used only for running npm test: docker-compose run --rm web npm test
web:
image: node:20-alpine
container_name: fiestaboard-web-test
working_dir: /app
volumes:
- ./web:/app
- fiestaboard-web-node-modules:/app/node_modules
environment:
- CI=true
networks:
- fiestaboard-dev
profiles:
- test
# Mock Vestaboard API - for integration/E2E testing only
fiestaboard-mock-board:
image: python:3.11-alpine
container_name: fiestaboard-mock-board
volumes:
- ./integration-tests/mock-board/server.py:/server.py:ro
# Host ports avoid macOS AirPlay / Control Center (often binds :7000).
# Inside the container the mock still listens on 7000/7001 (Vestaboard Local API).
ports:
- "17000:7000"
- "17001:7001"
environment:
- PORTS=7000,7001
command: python /server.py
networks:
- fiestaboard-dev
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
# Storybook - Component development and testing
fiestaboard-storybook:
image: node:20-alpine
container_name: fiestaboard-storybook
working_dir: /app
volumes:
- ./web:/app
- fiestaboard-storybook-node-modules:/app/node_modules
ports:
- "6006:6006"
environment:
- WATCHPACK_POLLING=true
command: sh -c "rm -f package-lock.json && npm install --force && npm run storybook -- --host 0.0.0.0"
networks:
- fiestaboard-dev
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
fiestaboard-dev:
driver: bridge
volumes:
web-dev-node-modules:
fiestaboard-web-node-modules:
fiestaboard-storybook-node-modules: