Skip to content

Instantly share code, notes, and snippets.

@kirill-zhirnov
Last active January 7, 2024 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kirill-zhirnov/a8c388b8c865d27c87c7749504855eb8 to your computer and use it in GitHub Desktop.
Save kirill-zhirnov/a8c388b8c865d27c87c7749504855eb8 to your computer and use it in GitHub Desktop.
version: '3.6'
services:
db:
image: kirillzh87/boundless-commerce-db:latest
environment:
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
healthcheck:
test: pg_isready -U postgres
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
redis :
image: redis:6
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
rabbitmq:
image: rabbitmq:3.9
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 15s
timeout: 15s
retries: 5
restart: unless-stopped
memcached:
image: memcached:1-alpine
healthcheck:
test: nc -z localhost 11211
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
admin:
image: kirillzh87/boundless-commerce-admin:latest
ports:
- "3000:3000"
environment:
INSTANCE_ID: 1
STATIC_ASSETS_HOST: http://localhost:3001
NODE_ENV: "${NODE_ENV}"
DB_PASS: "${POSTGRES_PASSWORD}"
DB_HOST: "${DB_HOST}"
RABBIT_MQ_HOST: "${RABBIT_MQ_HOST}"
MEMCACHED_DSN: "${MEMCACHED_DSN}"
REDIS_URL: "${REDIS_URL}"
S3_KEY: "${S3_KEY}"
S3_SECRET: "${S3_SECRET}"
S3_BUCKET: "${S3_BUCKET}"
S3_ENDPOINT: "https://${S3_ENDPOINT}"
S3_REGION: "${S3_REGION}"
S3_MEDIA_SERVER: "${S3_MEDIA_SERVER}"
AWS_SES_KEY: "${AWS_SES_KEY}"
AWS_SES_SECRET: "${AWS_SES_SECRET}"
AWS_SES_REGION: "${AWS_SES_REGION}"
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
memcached:
condition: service_healthy
restart: unless-stopped
admin-static:
image: kirillzh87/boundless-commerce-admin-static:latest
ports:
- "3001:80"
restart: unless-stopped
events-listener:
image: kirillzh87/boundless-commerce-events-listener:latest
environment:
NODE_ENV: "${NODE_ENV}"
DB_PASS: "${POSTGRES_PASSWORD}"
DB_HOST: "${DB_HOST}"
RABBIT_MQ_HOST: "${RABBIT_MQ_HOST}"
MEMCACHED_DSN: "${MEMCACHED_DSN}"
REDIS_URL: "${REDIS_URL}"
S3_KEY: "${S3_KEY}"
S3_SECRET: "${S3_SECRET}"
S3_BUCKET: "${S3_BUCKET}"
S3_ENDPOINT: "https://${S3_ENDPOINT}"
S3_REGION: "${S3_REGION}"
S3_MEDIA_SERVER: "${S3_MEDIA_SERVER}"
AWS_SES_KEY: "${AWS_SES_KEY}"
AWS_SES_SECRET: "${AWS_SES_SECRET}"
AWS_SES_REGION: "${AWS_SES_REGION}"
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
memcached:
condition: service_healthy
restart: unless-stopped
s3-resizer:
image: kirillzh87/boundless-s3-resizer:latest
environment:
NODE_ENV: "${NODE_ENV}"
S3_KEY: "${S3_KEY}"
S3_SECRET: "${S3_SECRET}"
S3_BUCKET: "${S3_BUCKET}"
S3_ENDPOINT: "https://${S3_ENDPOINT}"
S3_REGION: "${S3_REGION}"
USE_CACHE: true
ports :
- "3002:3000"
api:
image: kirillzh87/boundless-commerce-api-apache:latest
environment:
CACHE_TYPE: memcached
CACHE_MEMCACHED_HOST: "${MEMCACHED_HOST}"
CACHE_MEMCACHED_PORT: "${MEMCACHED_PORT}"
MANAGER_DB_DSN: "pgsql:host=${DB_HOST};port=5432;dbname=babylon_saas;user=postgres;password=${POSTGRES_PASSWORD}"
INSTANCE_DB_HOST: "${DB_HOST}"
RABBIT_HOST: "${RABBIT_MQ_HOST}"
RABBIT_PORT: 5672
RABBIT_USER: "${RABBIT_MQ_USER}"
RABBIT_PASS: "${RABBIT_MQ_PASS}"
S3_LOCATIONS_QTY: 1
S3_LOCATIONS_DEFAULT: "${S3_BUCKET}"
S3_LOCATION_1: "${S3_BUCKET}:${S3_ENDPOINT}:${S3_REGION}:5000:${S3_KEY}:${S3_SECRET}:"
ports :
- "3003:80"
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
memcached:
condition: service_healthy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment