Skip to content

Commit 10f60af

Browse files
committed
Merge branch 'main' of github.com:romkey/pdxhackerspace-hackstack
2 parents 8b6c3db + 7198695 commit 10f60af

16 files changed

Lines changed: 1465 additions & 3 deletions

File tree

.gitignore

Lines changed: 312 additions & 0 deletions
Large diffs are not rendered by default.

membermatters/.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
BACKUP_DATABASES=postgres://membermatters_user:MEMBERSMATTER_PASSWORD@postgresql/membermatters_db
2+
3+
POSTGRES_USER=membermatters_user
4+
POSTGRES_PASSWORD=MEMBERSMATTER_PASSWORD
5+
POSTGRES_DB=membermatters_db
6+
POSTGRES_HOST=postgresql
7+
8+
MM_ENV: "Production"
9+
MM_SECRET_KEY: "CHANGE_ME"
10+
MM_USE_POSTGRES: True
11+
MM_REDIS_HOST: "redis://mm-redis:6379/0"
12+
13+
CE_BROKER_URL: "redis://mm-redis:6379/0"

membermatters/docker-compose.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
services:
2+
mm-redis:
3+
image: redis
4+
restart: unless-stopped
5+
networks:
6+
- redis
7+
8+
mm-webapp:
9+
image: membermatters/membermatters
10+
restart: unless-stopped
11+
env_file:
12+
- .env
13+
ports:
14+
- "8000:8000"
15+
depends_on:
16+
- mm-redis
17+
healthcheck:
18+
test: ["CMD", "curl", "-f", "http://localhost:8000"]
19+
interval: 5s
20+
timeout: 5s
21+
retries: 15
22+
networks:
23+
- proxy
24+
- database
25+
- redis
26+
27+
mm-celery-worker:
28+
image: membermatters/membermatters
29+
restart: unless-stopped
30+
env_file:
31+
- .env
32+
depends_on:
33+
- mm-webapp
34+
- mm-redis
35+
networks:
36+
- proxy
37+
- database
38+
- redis
39+
40+
mm-celery-beat:
41+
image: membermatters/membermatters
42+
restart: unless-stopped
43+
env_file:
44+
- .env
45+
depends_on:
46+
- mm-webapp
47+
- mm-celery-worker
48+
- mm-redis
49+
networks:
50+
- proxy
51+
- database
52+
- redis
53+
54+
mm-celery-prom-exporter:
55+
image: danihodovic/celery-exporter
56+
restart: unless-stopped
57+
env_file:
58+
- .env
59+
depends_on:
60+
- mm-celery-worker
61+
- mm-redis
62+
networks:
63+
- proxy
64+
- database
65+
- redis
66+
67+
networks:
68+
proxy:
69+
external: true
70+
name: nginx-proxy-net
71+
database:
72+
external: true
73+
name: postgres-net
74+
redis:
75+
name: mm-redis-net

mosquitto/bin/mkuser.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ fi
1414
export USER=$1
1515
export PASSWORD=`pwgen 24 1`
1616

17-
echo "Will create this user:"
17+
echo "Creating this user:"
1818
echo
1919
echo "username: ${USER}"
2020
echo "password: ${PASSWORD}"
2121
echo "broker: mosquitto"
2222
echo "port: 1883"
2323
echo "url: mqtt://${USER}:${PASSWORD}@mosquitto:1883"
2424
echo
25-
echo "Only usable from within a hackstack container. To use externally, replace 'mosquitto' with the name or IP address of this server"
25+
echo "Only usable from within a hackstack container. To use externally, replace 'mosquitto' with the name or IP address or name of this server"
2626

2727
echo "creating user:"
2828
CMD="docker compose -f ../docker-compose.yml exec mosquitto mosquitto_passwd -b /mosquitto/data/mos_passwd ${USER} ${PASSWORD}"
@@ -33,3 +33,10 @@ else
3333
echo "failed"
3434
fi
3535

36+
echo "force Mosquitto to reload password file"
37+
CMD="docker compose -f ../docker-compose.yml exec mosquitto pkill -1 mosquitto"
38+
if $CMD ; then
39+
echo "successful"
40+
else
41+
echo "failed"
42+
fi
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM node:23-alpine
2+
3+
# Set the working directory in the container
4+
WORKDIR /app
5+
6+
RUN apk add --update --no-cache git file imagemagick
7+
8+
RUN git clone https://github.com/AlainGourves/shairport-metadata-display .
9+
RUN mkdir /app/public/img
10+
11+
#COPY package*.json ./
12+
13+
# Install Node.js dependencies
14+
RUN npm install --omit=dev
15+
16+
# Copy the application source code to the container
17+
COPY . .
18+
19+
# Expose the port if the application uses one (adjust as needed)
20+
EXPOSE 8080
21+
22+
# Set the default command to run the application
23+
CMD [ "npm", "start" ]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# https://github.com/AlainGourves/shairport-metadata-display
2+
services:
3+
shairport-metadata-display:
4+
build: .
5+
restart: unless-stopped
6+
env_file:
7+
- .env
8+
volumes:
9+
- ../../run/shairport-sync/fifos:/tmp/shairport-sync-metadata

shairport-sync/.gitignore

Lines changed: 307 additions & 0 deletions
Large diffs are not rendered by default.

shairport-sync/config/shairport-sync.conf.example

Lines changed: 306 additions & 0 deletions
Large diffs are not rendered by default.

shairport-sync/docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
services:
44
shairport-sync:
55
image: mikebrady/shairport-sync:latest
6+
container_name: shairport-sync
7+
hostname: shairport-sync
68
restart: unless-stopped
79
network_mode: host
810
devices:
911
- /dev/snd:/dev/snd
10-
12+
volumes:
13+
- ../../run/shairport-sync/fifos:/tmp/shairport-sync-metadata/

snapclient/.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SOUND_DEVICE=/dev/snd
2+
# IP address or hostname of snapserver
3+
HOST=10.0.1.11

0 commit comments

Comments
 (0)