Skip to content

Commit

Permalink
Dockerize Multiple Services | docker-compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
agungTuanany committed Aug 10, 2019
1 parent 65a8157 commit 03936f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion complex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ docker run worker/docker-react
~~~
# see in the root folder there's docker-compose.yml file
# run cli
dokcer-compose up
docker-compose up
~~~

10 changes: 10 additions & 0 deletions complex/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@ services:
postgres:
image: 'postgres:latest'
container_name: postgres-complex
redis:
images: 'redis:latest'
container_name: redis-complex
server:
build: # specify build
dockerfile: Dockerfile.dev
contex: ./server
volumes:
- /app/node_modules # a command for not try to overwrite this folder
- ./server:/app

0 comments on commit 03936f9

Please sign in to comment.