Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
feat(docker): replace stale Sail compose with self-contained stack
André Dantasd15981b8fdee
diff --git a/.gitignore b/.gitignoreindex b23d783d6..7c9dcfd5e 100644--- a/.gitignore+++ b/.gitignore@@ -14,6 +14,7 @@.env.env.backup.env.production+.env.testing.local.phpactor.json.phpunit.result.cacheHomestead.jsondiff --git a/compose.override.yaml.example b/compose.override.yaml.examplenew file mode 100644index 000000000..5b21cdb21--- /dev/null+++ b/compose.override.yaml.example@@ -0,0 +1,52 @@+# TryPost — Compose override example.+#+# Compose automatically merges `compose.override.yaml` (gitignored, per-developer)+# on top of `compose.yaml`. Copy this file to start customizing:+#+# cp compose.override.yaml.example compose.override.yaml+#+# Common overrides are commented below. Uncomment what you need.++services:+ app:+ # Match container UID/GID to your host user (Linux contributors on+ # systems where your UID isn't 1000).+ # build:+ # args:+ # UID: 1001+ # GID: 1001++ # Enable Xdebug (requires installing the extension via a Dockerfile+ # tweak; left commented as a hint).+ # environment:+ # XDEBUG_MODE: debug+ # XDEBUG_CONFIG: 'client_host=host.docker.internal'++ # Forward additional ports if 8000/5173/8080 conflict with another+ # service on your host.+ # ports:+ # - '9000:80'++ pgsql:+ # Free up host port 5432 (e.g. when running another Postgres locally).+ # ports:+ # - '54320:5432'++ redis:+ # ports:+ # - '63790:6379'++ mailpit:+ # Move the Mailpit UI off port 8025.+ # ports:+ # - '8025:8025'+ # - '1025:1025'++# Add additional services here — e.g. a Selenium container for Dusk tests:+#+# selenium:+# image: selenium/standalone-chromium+# extra_hosts:+# - 'host.docker.internal:host-gateway'+# volumes:+# - '/dev/shm:/dev/shm'diff --git a/compose.yaml b/compose.yamlindex f8b765f03..244baa04b 100644--- a/compose.yaml+++ b/compose.yaml@@ -1,91 +1,83 @@services:- laravel.test:+ app:build:- context: './vendor/laravel/sail/runtimes/8.5'- dockerfile: Dockerfile+ context: .+ dockerfile: docker/Dockerfile+ target: devargs:- WWWGROUP: '${WWWGROUP}'- image: 'sail-8.5/app'- extra_hosts:- - 'host.docker.internal:host-gateway'+ UID: ${UID:-1000}+ GID: ${GID:-1000}+ image: trypost-app:devports:- - '${APP_PORT:-80}:80'- - '${VITE_PORT:-5173}:${VITE_PORT:-5173}'+ - '${APP_PORT:-8000}:80'+ - '${REVERB_PORT:-8080}:8080'+ - '${VITE_PORT:-5173}:5173'environment:- WWWUSER: '${WWWUSER}'- LARAVEL_SAIL: 1- XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'- XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'- IGNITION_LOCAL_SITES_PATH: '${PWD}'+ TRYPOST_DOCKER_BOOTSTRAP: '1'+ UID: ${UID:-1000}+ GID: ${GID:-1000}+ # Real env vars take precedence over .env.testing (which pins+ # DB_HOST=127.0.0.1, DB_USERNAME=root). Without these, the test+ # suite can't see Postgres / Redis from inside the container.+ DB_HOST: pgsql+ DB_USERNAME: postgres+ REDIS_HOST: redisvolumes:- - '.:/var/www/html'- networks:- - sail+ - .:/var/www/html+ - app-vendor:/var/www/html/vendor+ - app-node-modules:/var/www/html/node_modules+ extra_hosts:+ - 'host.docker.internal:host-gateway'depends_on:- - pgsql- - redis- - mailpit- - selenium+ pgsql:+ condition: service_healthy+ redis:+ condition: service_healthy+ healthcheck:+ test: ['CMD', 'curl', '-fsS', 'http://127.0.0.1/up']+ interval: 30s+ timeout: 5s+ retries: 5+ start_period: 90s+pgsql:- image: 'postgres:18-alpine'- ports:- - '${FORWARD_DB_PORT:-5432}:5432'+ image: postgres:16-alpineenvironment:- PGPASSWORD: '${DB_PASSWORD:-secret}'- POSTGRES_DB: '${DB_DATABASE}'- POSTGRES_USER: '${DB_USERNAME}'- POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'+ POSTGRES_DB: ${DB_DATABASE:-trypost}+ POSTGRES_USER: ${DB_USERNAME:-postgres}+ POSTGRES_PASSWORD: ${DB_PASSWORD:-password}volumes:- - 'sail-pgsql:/var/lib/postgresql'- - './vendor/laravel/sail/database/pgsql/create-testing-database.sql:/docker-entrypoint-initdb.d/10-create-testing-database.sql'- networks:- - sail+ - pgdata:/var/lib/postgresql/data+ - ./docker/postgres-init.sh:/docker-entrypoint-initdb.d/10-create-test-db.sh:ro+ ports:+ - '${FORWARD_DB_PORT:-5432}:5432'healthcheck:- test:- - CMD- - pg_isready- - '-q'- - '-d'- - '${DB_DATABASE}'- - '-U'- - '${DB_USERNAME}'- retries: 3+ test: ['CMD-SHELL', 'pg_isready -U ${DB_USERNAME:-postgres} -d ${DB_DATABASE:-trypost}']+ interval: 10stimeout: 5s+ retries: 5+redis:- image: 'redis:alpine'+ image: redis:7-alpine+ command: redis-server --appendonly yes+ volumes:+ - redisdata:/dataports:- '${FORWARD_REDIS_PORT:-6379}:6379'- volumes:- - 'sail-redis:/data'- networks:- - sailhealthcheck:- test:- - CMD- - redis-cli- - ping- retries: 3- timeout: 5s+ test: ['CMD', 'redis-cli', 'ping']+ interval: 10s+ timeout: 3s+ retries: 5+mailpit:- image: 'axllent/mailpit:latest'+ image: axllent/mailpit:latestports:- - '${FORWARD_MAILPIT_PORT:-1025}:1025'- - '${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025'- networks:- - sail- selenium:- image: selenium/standalone-chromium- extra_hosts:- - 'host.docker.internal:host-gateway'- volumes:- - '/dev/shm:/dev/shm'- networks:- - sail-networks:- sail:- driver: bridge+ - '${FORWARD_MAILPIT_SMTP_PORT:-1025}:1025'+ - '${FORWARD_MAILPIT_UI_PORT:-8025}:8025'+volumes:- sail-pgsql:- driver: local- sail-redis:- driver: local+ pgdata:+ redisdata:+ app-vendor:+ app-node-modules: