Skip to content

Instantly share code, notes, and snippets.

@robertz
Created March 25, 2018 14:14
Show Gist options
  • Save robertz/a7ab02db30939fccf87f9b761344fa3d to your computer and use it in GitHub Desktop.
Save robertz/a7ab02db30939fccf87f9b761344fa3d to your computer and use it in GitHub Desktop.
version: '2'
services:
fullstack-nginx:
build:
context: ./.docker/prod/nginx
container_name: fullstack-nginx
links:
- fullstack-node
ports:
- "80:80"
- "443:443"
volumes:
- ./client/dist:/usr/share/nginx/html
fullstack-webpack:
build:
context: ./.docker/prod/webpack
container_name: fullstack-webpack
volumes:
- ./client:/app
- ./client/node_modules:/app/node_modules
command: "yarn build"
fullstack-node:
build:
context: ./.docker/prod/node
container_name: fullstack-node
environment:
- NODE_ENV=production
- PORT=3000
volumes:
- ./server:/app
- ./server/node_modules:/app/node_modules
ports:
- "3000:3000"
command: "yarn start"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment