Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willis7/contacts
https://github.com/willis7/contacts
docker docker-compose golang makefile postgresql
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/willis7/contacts
- Owner: willis7
- Created: 2019-05-17T09:06:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-17T09:16:14.000Z (over 5 years ago)
- Last Synced: 2024-04-24T12:07:00.560Z (8 months ago)
- Topics: docker, docker-compose, golang, makefile, postgresql
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Contacts
This trivial application explores the use of postgresql, docker and golang (templates, go modules, sqlx).
## Docker Compose
By mounting the `contacts.sql` to `/docker-entrypoint-initdb.d/contacts.sql` the container will run the script as part of the intialisation phase.
## Development
For a docker based db and local run of code:$ docker-compose -f dev-compose.yml up -d db
$ go run main.go -conn "postgresql://sion:example@localhost:5432/contacts"For a docker only build
$ docker-compose up --build