add make to bright alpine

This commit is contained in:
CJ_Clippy 2025-01-11 08:55:47 -08:00
parent 9db119807a
commit f85c916069
3 changed files with 28 additions and 8 deletions

View File

@ -10,11 +10,7 @@ image: futureporn/bright
servers:
web:
- 45.76.57.101
# - 127.0.0.1
# job:
# hosts:
# - 192.168.0.1
# cmd: bin/jobs
# Enable SSL auto certification via Let's Encrypt and allow for multiple apps on a single web server.
# Remove this section when using multiple web servers and ensure you terminate SSL at your load balancer.
@ -23,6 +19,13 @@ servers:
proxy:
ssl: true
host: bright.futureporn.net
healthcheck:
path: /up
interval: 2
timeout: 2
# how long to wait for new containers to boot
deploy_timeout: 420
# Credentials for your image host.
registry:
@ -82,10 +85,11 @@ ssh:
# Use accessory services (secrets come from .kamal/secrets).
#
accessories:
db:
image: postgres:15
host: 45.76.57.101
port: 5432
port: "127.0.0.1:5432:5432"
env:
clear:
POSTGRES_USER: postgres
@ -94,6 +98,7 @@ accessories:
- POSTGRES_PASSWORD
directories:
- pg_data:/var/lib/postgresql/data
redis:
image: valkey/valkey:8
host: 45.76.57.101
@ -101,3 +106,17 @@ accessories:
directories:
- data:/data
pgadmin:
image: dpage/pgadmin4
host: 45.76.57.101
port: 5050
env:
clear:
PGADMIN_LISTEN_PORT: "5050"
secret:
- PGADMIN_DEFAULT_EMAIL
- PGADMIN_DEFAULT_PASSWORD
proxy:
host: pgadmin.futureporn.net
healthcheck:
path: /login

View File

@ -69,7 +69,7 @@ services:
depends_on:
- db
volumes:
- ./services/bright:/app
- ./services/bright/lib:/app/lib
develop:
watch:
- action: sync+restart
@ -78,6 +78,7 @@ services:
db:
image: postgres:15
container_name: futureporn-db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password

View File

@ -24,7 +24,7 @@
FROM elixir:1.17.2-alpine AS dev
RUN apk add git inotify-tools \
RUN apk add git make inotify-tools \
&& mkdir /home/user \
&& chown 1000.1000 /home/user