2do/docker-compose.yml
Kevin Thomas 43b308dcaa
Update Docker Configuration (#26)
* Fix Docker configuration

- Fix rice embed-go failing in Dockerfile because it is expecting GOROOT
  to be /usr/local/go/src
- Modify docker-compose.yml example so that it volume mounts the db so
  that it is saved in between container restarts
- Add .dockerignore file so it doesn't copy locally created db and
  binary into the docker container

* Run go build after rice embed-go in Dockerfile
2020-07-22 22:49:54 +10:00

15 lines
212 B
YAML

version: '3'
services:
todo:
image: prologic/todo
container_name: todo
restart: always
ports:
- 8000:8000
volumes:
- todo_db:/usr/local/go/src/todo/todo.db
volumes:
todo_db: