Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
feat(docker): persisting the container names for the docker container…
Browse files Browse the repository at this point in the history
…s that get created allows to easily use an alias instead of the container id which is automatically generated and is usually different
  • Loading branch information
lirantal committed Apr 17, 2016
1 parent 8da3725 commit 852a1a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
web:
restart: always
build: .
container_name: meanjs
command: npm start
links:
- db
Expand All @@ -16,8 +17,9 @@ web:
- /opt/mean.js/public
- /opt/mean.js/uploads
db:
restart: always
image: mongo:3.2
container_name: db_1
restart: always
ports:
- "27017:27017"
volumes:
Expand Down

0 comments on commit 852a1a6

Please sign in to comment.