chore: update production compose to use pre-built image, keep build version for reference
Some checks failed
Lock Threads / action (push) Has been cancelled

This commit is contained in:
netlas
2026-04-22 14:01:12 +03:00
parent 7edc1246a0
commit 0c8278d277
2 changed files with 72 additions and 10 deletions

View File

@@ -1,38 +1,36 @@
version: '3'
services:
base: &base
build:
context: .
dockerfile: docker/Dockerfile
env_file: .env ## Change this file for customized env variables
volumes:
- storage_data:/app/storage
rails:
<<: *base
image: git.leadmagnet.dev/leadmagnet/leadchat:latest
depends_on:
- postgres
- redis
ports:
- '127.0.0.1:3001:3000'
env_file: .env
environment:
- NODE_ENV=production
- RAILS_ENV=production
- INSTALLATION_ENV=docker
volumes:
- storage_data:/app/storage
entrypoint: docker/entrypoints/rails.sh
command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0']
restart: always
sidekiq:
<<: *base
image: git.leadmagnet.dev/leadmagnet/leadchat:latest
depends_on:
- postgres
- redis
env_file: .env
environment:
- NODE_ENV=production
- RAILS_ENV=production
- INSTALLATION_ENV=docker
volumes:
- storage_data:/app/storage
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
restart: always