Created
March 25, 2018 14:05
-
-
Save robertz/9ca65154f29d741baac54c2d85545583 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: '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