Created
March 29, 2018 09:01
-
-
Save clevertechru/74e502826ed3a4b1699e0f795df7f2de to your computer and use it in GitHub Desktop.
docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
mysql: | |
image: mysql | |
volumes: | |
- .mysql:/var/lib/mysql | |
# - lowmem.cnf:/etc/mysql/conf.d/lowmem.cnf | |
environment: | |
MYSQL_DATABASE: bnsys_production | |
MYSQL_USER: root | |
MYSQL_PASSWORD: | |
MYSQL_ALLOW_EMPTY_PASSWORD: 1 | |
redis: | |
image: 'redis:3.2-alpine' | |
command: redis-server --requirepass yourpassword | |
ports: | |
- '6379:6379' | |
volumes: | |
- 'redis:/data' | |
website: | |
depends_on: | |
- 'mysql' | |
- 'redis' | |
build: . | |
ports: | |
- '3000:3000' | |
volumes: | |
- '.:/app' | |
env_file: | |
- '.env' | |
# sidekiq: | |
# depends_on: | |
# - 'mysql' | |
# - 'redis' | |
# build: . | |
# command: sidekiq -C config/sidekiq.yml.erb | |
# volumes: | |
# - '.:/app' | |
# env_file: | |
# - '.env' | |
cable: | |
depends_on: | |
- 'redis' | |
build: . | |
command: puma -p 28080 cable/config.ru | |
ports: | |
- '28080:28080' | |
volumes: | |
- '.:/app' | |
env_file: | |
- '.env' | |
volumes: | |
redis: | |
mysql: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
postgres: | |
image: 'postgres:9.6-alpine' | |
environment: | |
POSTGRES_USER: 'orats_base' | |
POSTGRES_PASSWORD: 'yourpassword' | |
ports: | |
- '5432:5432' | |
volumes: | |
- 'postgres:/var/lib/postgresql/data' | |
redis: | |
image: 'redis:3.2-alpine' | |
command: redis-server --requirepass yourpassword | |
ports: | |
- '6379:6379' | |
volumes: | |
- 'redis:/data' | |
website: | |
depends_on: | |
- 'postgres' | |
- 'redis' | |
build: . | |
ports: | |
- '3000:3000' | |
volumes: | |
- '.:/app' | |
env_file: | |
- '.env' | |
# sidekiq: | |
# depends_on: | |
# - 'postgres' | |
# - 'redis' | |
# build: . | |
# command: sidekiq -C config/sidekiq.yml.erb | |
# volumes: | |
# - '.:/app' | |
# env_file: | |
# - '.env' | |
cable: | |
depends_on: | |
- 'redis' | |
build: . | |
command: puma -p 28080 cable/config.ru | |
ports: | |
- '28080:28080' | |
volumes: | |
- '.:/app' | |
env_file: | |
- '.env' | |
volumes: | |
redis: | |
postgres: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment