Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
version: '3'
networks:
services_development:
external: true
services:
rmdc_app:
container_name: rmdc_app
build:
context: .
dockerfile: Dockerfile.dev
volumes:
- .:/var/apps/backend
networks:
services_development:
ports:
- 3000:3000
depends_on:
- redis
- mysql
- elasticsearch
stdin_open: true # -i interactive
tty: true # -t terminal
entrypoint: dev-entrypoint.sh
command: ['rails', 'server', '-p', '3000', '-b', '0.0.0.0']
environment:
....
redis:
image: redis:3.2.2
container_name: redis
networks:
services_development:
ports:
- 6379:6379
command: ['redis-server']
volumes:
- redis_data:/var/lib/redis
mysql:
image: mysql:8.0.27
container_name: mysql
command: ['mysqld', '--default-authentication-plugin=mysql_native_password']
restart: always
ports:
- 3307:3306
expose:
- '3307'
networks:
services_development:
volumes:
- mysql_data:/var/lib/mysql
environment:
....
elasticsearch:
image: elasticsearch:5.6.3
container_name: elasticsearch
networks:
- services_development
ports:
- 9200:9200
volumes:
- es_data:/usr/share/elasticsearch/data
environment:
....
kibana:
image: kibana:5.6.3
container_name: backend_kibana
networks:
- services_development
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
depends_on:
- elasticsearch
volumes:
redis_data: {}
mysql_data: {}
es_data: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment