Skip to content

Instantly share code, notes, and snippets.

@robertz
Created March 25, 2018 14:05
Show Gist options
  • Save robertz/9ca65154f29d741baac54c2d85545583 to your computer and use it in GitHub Desktop.
Save robertz/9ca65154f29d741baac54c2d85545583 to your computer and use it in GitHub Desktop.
version: '2'
services:
dev-nginx:
build:
context: ./.docker/dev/nginx
container_name: dev-nginx
links:
- dev-node
ports:
- "80:80"
- "443:443"
volumes:
- ./client/dist:/usr/share/nginx/html
dev-webpack:
build:
context: ./.docker/dev/webpack
container_name: dev-webpack
volumes:
- ./client:/app
- ./client/node_modules:/app/node_modules
ports:
- "8080:8080"
command: "yarn start"
dev-node:
build:
context: ./.docker/dev/node
container_name: dev-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