Skip to content

Instantly share code, notes, and snippets.

@ildarusmanov
Created November 12, 2018 06:20
Show Gist options
  • Save ildarusmanov/7e9bbef885edafb7b7d6628fbf72b26b to your computer and use it in GitHub Desktop.
Save ildarusmanov/7e9bbef885edafb7b7d6628fbf72b26b to your computer and use it in GitHub Desktop.
version: '3.6'
services:
nginx:
restart: always
build: docker/nginx
ports:
- 80:80
volumes:
- webapp:/var/www/app
links:
- web
web:
build: .
command: bundle exec rails s -p 3000 -b '0.0.0.0'
volumes:
- webapp:/var/www/app
working_dir: /var/www/app
ports:
- 3000:3000
volumes:
webapp:
name: webapp
driver: local
driver_opts:
type: none
o: bind
device: ${APPROOT}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment