version: '2' # NOTE: There are secrets in plain text in this file! # In a real production environment, this info would be # managed by the orchestration tooling, # eg. docker swarm, kubernetes, etc. services: rails: build: context: ./ environment: DATABASE_HOST: postgres DATABASE_NAME: chatbot_prod DATABASE_USER: postgres DATABASE_PASS: postgres RAILS_MASTER_KEY: 8a8e7fc319733cd969f23450cbdfadaf SOLID_QUEUE_IN_PUMA: true depends_on: - postgres ports: - "3000:3000" networks: - chatbot-network postgres: image: postgres:16.8-alpine3.20 environment: POSTGRES_DB: chatbot_prod POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres volumes: - postgres-data:/var/lib/postgresql/data networks: - chatbot-network volumes: postgres-data: networks: chatbot-network: