Created
November 12, 2018 06:20
-
-
Save ildarusmanov/7e9bbef885edafb7b7d6628fbf72b26b to your computer and use it in GitHub Desktop.
This file contains hidden or 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: '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