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: servers:
web: web:
- 45.76.57.101 - 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. # 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. # Remove this section when using multiple web servers and ensure you terminate SSL at your load balancer.
@ -23,6 +19,13 @@ servers:
proxy: proxy:
ssl: true ssl: true
host: bright.futureporn.net 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. # Credentials for your image host.
registry: registry:
@ -82,10 +85,11 @@ ssh:
# Use accessory services (secrets come from .kamal/secrets). # Use accessory services (secrets come from .kamal/secrets).
# #
accessories: accessories:
db: db:
image: postgres:15 image: postgres:15
host: 45.76.57.101 host: 45.76.57.101
port: 5432 port: "127.0.0.1:5432:5432"
env: env:
clear: clear:
POSTGRES_USER: postgres POSTGRES_USER: postgres
@ -94,6 +98,7 @@ accessories:
- POSTGRES_PASSWORD - POSTGRES_PASSWORD
directories: directories:
- pg_data:/var/lib/postgresql/data - pg_data:/var/lib/postgresql/data
redis: redis:
image: valkey/valkey:8 image: valkey/valkey:8
host: 45.76.57.101 host: 45.76.57.101
@ -101,3 +106,17 @@ accessories:
directories: directories:
- data:/data - 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: depends_on:
- db - db
volumes: volumes:
- ./services/bright:/app - ./services/bright/lib:/app/lib
develop: develop:
watch: watch:
- action: sync+restart - action: sync+restart
@ -78,6 +78,7 @@ services:
db: db:
image: postgres:15 image: postgres:15
container_name: futureporn-db
environment: environment:
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password

View File

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