Created
September 21, 2017 18:45
-
-
Save jpstokes/dec6c0200aabdd42a7160d0e550ccdab to your computer and use it in GitHub Desktop.
docker-compose
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: '3' | |
services: | |
backend: | |
build : | |
context: ./backend | |
dockerfile: Dockerfile.backend | |
entrypoint: 'bundle exec puma -C config/puma.rb' | |
volumes: | |
- ./backend:/home/app/backend | |
ports: | |
- "3000" | |
frontend: | |
build: | |
context: ./frontend | |
dockerfile: Dockerfile.frontend | |
environment: | |
- REACT_APP_API_URL=/api/v1 | |
- REACT_APP_API_PORT=3000 | |
- REACT_APP_API_V1_KEY=8a935a34838acaa35d9f48bd0e21a51a | |
- REACT_APP_NODE_ENV=production | |
volumes: | |
- ./frontend/frontend:/home/app/frontend | |
ports: | |
- "3000:3000" | |
server: | |
build: | |
context: ./nginx | |
dockerfile: Dockerfile.nginx | |
depends_on: | |
- frontend | |
- backend | |
ports: | |
- "80:80" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment