2022-04-11 22:57:34 +07:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
lago_postgres_data:
|
|
|
|
lago_redis_data:
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:14.0-alpine
|
|
|
|
container_name: lago-db
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:-lago}
|
|
|
|
POSTGRES_USER: ${POSTGRES_USER:-lago}
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
|
|
|
|
PGDATA: /data/postgres
|
|
|
|
volumes:
|
|
|
|
- lago_postgres_data:/data/postgres
|
|
|
|
ports:
|
|
|
|
- ${POSTGRES_PORT:-5432}:5432
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:6.2-alpine
|
|
|
|
container_name: lago-redis
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- lago_redis_data:/data
|
|
|
|
ports:
|
|
|
|
- ${REDIS_PORT:-6379}:6379
|
|
|
|
|
|
|
|
api:
|
|
|
|
container_name: lago-api
|
2022-07-04 22:35:32 +07:00
|
|
|
image: getlago/api:v0.3.1-alpha
|
2022-04-11 22:57:34 +07:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
command: ["./scripts/start.sh"]
|
|
|
|
environment:
|
2022-05-12 14:50:29 +07:00
|
|
|
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
|
|
|
|
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
|
2022-04-11 22:57:34 +07:00
|
|
|
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
|
|
|
|
- RAILS_ENV=production
|
2022-04-29 16:21:13 +07:00
|
|
|
- SENTRY_DSN=${SENTRY_DSN}
|
2022-05-12 14:50:29 +07:00
|
|
|
- LAGO_FRONT_URL=${LAGO_FRONT_URL:-http://localhost}
|
2022-07-08 20:54:31 +07:00
|
|
|
- LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded
|
2022-06-02 17:22:05 +07:00
|
|
|
- LAGO_SIDEKIQ_WEB=${LAGO_SIDEKIQ_WEB}
|
2022-06-14 17:25:14 +07:00
|
|
|
- ENCRYPTION_PRIMARY_KEY=${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key}
|
|
|
|
- ENCRYPTION_DETERMINISTIC_KEY=${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key}
|
2022-06-23 15:08:46 +07:00
|
|
|
- ENCRYPTION_KEY_DERIVATION_SALT=${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt}
|
2022-06-29 20:41:00 +07:00
|
|
|
- LAGO_USE_AWS_S3=${LAGO_USE_AWS_S3}
|
|
|
|
- LAGO_AWS_S3_ACCESS_KEY_ID=${LAGO_AWS_S3_ACCESS_KEY_ID}
|
|
|
|
- LAGO_AWS_S3_SECRET_ACCESS_KEY=${LAGO_AWS_S3_SECRET_ACCESS_KEY}
|
|
|
|
- LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION}
|
|
|
|
- LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET}
|
2022-07-05 20:31:37 +07:00
|
|
|
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
|
2022-07-07 21:45:18 +07:00
|
|
|
- LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379}
|
2022-04-11 22:57:34 +07:00
|
|
|
ports:
|
|
|
|
- ${API_PORT:-3000}:3000
|
|
|
|
|
|
|
|
front:
|
|
|
|
container_name: lago-front
|
2022-07-04 22:35:32 +07:00
|
|
|
image: getlago/front:v0.3.1-alpha
|
2022-04-11 22:57:34 +07:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- api
|
|
|
|
environment:
|
2022-05-12 14:50:29 +07:00
|
|
|
- API_URL=${LAGO_API_URL:-http://localhost:3000}
|
2022-04-11 22:57:34 +07:00
|
|
|
- APP_ENV=${APP_ENV:-production}
|
2022-05-12 14:50:29 +07:00
|
|
|
- CODEGEN_API=${LAGO_API_URL:-http://localhost:3000}
|
2022-04-11 22:57:34 +07:00
|
|
|
ports:
|
|
|
|
- ${FRONT_PORT:-80}:80
|
|
|
|
|
|
|
|
api-worker:
|
|
|
|
container_name: lago-worker
|
2022-07-04 22:35:32 +07:00
|
|
|
image: getlago/api:v0.3.1-alpha
|
2022-04-11 22:57:34 +07:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- api
|
|
|
|
command: ["./scripts/start.worker.sh"]
|
|
|
|
environment:
|
2022-05-12 14:50:29 +07:00
|
|
|
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
|
|
|
|
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
|
|
|
|
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
|
2022-04-11 22:57:34 +07:00
|
|
|
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
|
|
|
|
- RAILS_ENV=production
|
2022-04-29 16:21:13 +07:00
|
|
|
- SENTRY_DSN=${SENTRY_DSN}
|
2022-07-08 20:54:31 +07:00
|
|
|
- LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded
|
2022-06-14 17:25:14 +07:00
|
|
|
- ENCRYPTION_PRIMARY_KEY=${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key}
|
|
|
|
- ENCRYPTION_DETERMINISTIC_KEY=${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key}
|
2022-06-23 15:08:46 +07:00
|
|
|
- ENCRYPTION_KEY_DERIVATION_SALT=${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt}
|
2022-06-29 20:41:00 +07:00
|
|
|
- LAGO_USE_AWS_S3=${LAGO_USE_AWS_S3}
|
|
|
|
- LAGO_AWS_S3_ACCESS_KEY_ID=${LAGO_AWS_S3_ACCESS_KEY_ID}
|
|
|
|
- LAGO_AWS_S3_SECRET_ACCESS_KEY=${LAGO_AWS_S3_SECRET_ACCESS_KEY}
|
|
|
|
- LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION}
|
|
|
|
- LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET}
|
2022-07-05 20:31:37 +07:00
|
|
|
- LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000}
|
2022-07-07 21:45:18 +07:00
|
|
|
- LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379}
|
2022-04-11 22:57:34 +07:00
|
|
|
|
|
|
|
api-clock:
|
|
|
|
container_name: lago-clock
|
2022-07-04 22:35:32 +07:00
|
|
|
image: getlago/api:v0.3.1-alpha
|
2022-04-11 22:57:34 +07:00
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- api
|
|
|
|
command: ["./scripts/start.clock.sh"]
|
|
|
|
environment:
|
2022-05-12 14:50:29 +07:00
|
|
|
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
|
|
|
|
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
|
|
|
|
- REDIS_URL=redis://${REDIS_HOST:-redis}:${REDIS_PORT:-6379}
|
2022-04-11 22:57:34 +07:00
|
|
|
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-your-secret-key-base-hex-64}
|
|
|
|
- RAILS_ENV=production
|
2022-04-29 16:21:13 +07:00
|
|
|
- SENTRY_DSN=${SENTRY_DSN}
|
2022-07-08 20:54:31 +07:00
|
|
|
- LAGO_RSA_PRIVATE_KEY=${LAGO_RSA_PRIVATE_KEY} # Should be base64 encoded
|
2022-06-14 17:25:14 +07:00
|
|
|
- ENCRYPTION_PRIMARY_KEY=${LAGO_ENCRYPTION_PRIMARY_KEY:-your-encrpytion-primary-key}
|
|
|
|
- ENCRYPTION_DETERMINISTIC_KEY=${LAGO_ENCRYPTION_DETERMINISTIC_KEY:-your-encrpytion-deterministic-key}
|
2022-06-23 15:08:46 +07:00
|
|
|
- ENCRYPTION_KEY_DERIVATION_SALT=${LAGO_ENCRYPTION_KEY_DERIVATION_SALT:-your-encrpytion-derivation-salt}
|
2022-07-05 20:31:37 +07:00
|
|
|
|
|
|
|
pdf:
|
|
|
|
image: gotenberg/gotenberg:7
|