Skip to content

Commit

Permalink
Add container_name for docker services
Browse files Browse the repository at this point in the history
Comment out automatic restart, which is more useful in a production
context
  • Loading branch information
rtzll committed Dec 27, 2016
1 parent 14594b7 commit fe7be00
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,8 +1,9 @@
version: '2'
services:
todolist:
container_name: todolist
image: todolist
restart: always
# restart: always
env_file: .env
command: gunicorn todolist:app -w 2 -b :8000
ports:
Expand All @@ -11,6 +12,7 @@ services:
- migration

migration:
container_name: migration
build: .
image: todolist
env_file: .env
Expand Down

0 comments on commit fe7be00

Please sign in to comment.