И
networks:
teststone:
external: false
services:
backend:
build: .
hostname: advantage-api
container_name: advantage-api
ports:
- "8000:8000"
depends_on:
- "postgres"
- "redis"
- "rabbitmq"
- "heroku_connect"
volumes:
- .:/app
environment:
- RAILS_ENV=development
- DATABASE_HOST=localhost
- DATABASE_USER=postgres
- DATABASE_PORT=5434
- MAILER_DEFAULT_URL_HOST=http://localhost:3000
- HEROKU_CONNECT_DATABASE_HOST=heroku_connect_postgres
- HEROKU_CONNECT_DATABASE_PORT=5436
- SALESFORCE_OAUTH_KEY=donotuse
- SALESFORCE_OAUTH_SECRET=donotuse
- SALESFORCE_OAUTH_URL=https://127.0.0.1:3000/oauth/callback
command: bash -c "bundle && bundle exec rake db:migrate && bundle exec rails s -b 0.0.0.0 -p 8000"
networks:
- teststone
# - default
postgres:
image: postgres:latest
hostname: postgres_advantage
container_name: postgres_advantage
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ${PWD}/../postgres/data/:/var/lib/postgresql/data
restart: always
ports:
- "5435:5432"
networks:
- teststone
# - default
redis:
image: redis:4.0.5-alpine
command: ["redis-server", "--appendonly", "yes"]
hostname: redis_advantage
# ports:
# - "6379:6379"
networks:
- "teststone"
# volumes:
# - redis-data:/data
rabbitmq:
image: "rabbitmq:3-management"
hostname: rabbitmq_advantage
container_name: rabbitmq_advantage
ports:
- "15672:15672"
- "5672:5672"
# labels:
# NAME: "rabbitmq"
networks:
- "teststone"
# volumes:
# - ./rabbitmq-development.conf:/etc/rabbitmq/rabbitmq.config
heroku_connect:
image: postgres:9.6-alpine
hostname: heroku_connect_postgres
container_name: heroku_connect_postgres
volumes:
- ${PWD}/postgres/data/:/var/lib/postgresql/docker/data/
ports:
- "5436:5432"
networks:
- teststone