Skip to content

Instantly share code, notes, and snippets.

@jpstokes
Created September 21, 2017 18:45
Show Gist options
  • Save jpstokes/dec6c0200aabdd42a7160d0e550ccdab to your computer and use it in GitHub Desktop.
Save jpstokes/dec6c0200aabdd42a7160d0e550ccdab to your computer and use it in GitHub Desktop.
docker-compose
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