Add a minimal gorm example that takes a go struct, creates a postgres table, and writes the struct to the table.
This commit is contained in:
committed by
=Michael Hohn
parent
e850a36943
commit
71838d3320
@@ -10,6 +10,8 @@ services:
|
||||
POSTGRES_DB: exampledb
|
||||
volumes:
|
||||
- postgres_data:/Users/hohn/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432" # Exposing PostgreSQL to the host
|
||||
expose:
|
||||
- "5432"
|
||||
networks:
|
||||
@@ -37,6 +39,8 @@ services:
|
||||
command: sh -c "apt-get update && apt-get install -y curl && tail -f /dev/null"
|
||||
ports:
|
||||
- "8080:80" # Exposing port 80 inside the container as port 8080 on the host
|
||||
volumes:
|
||||
- /Users/hohn/work-gh/mrva/mrvacommander:/mrva/mrvacommander
|
||||
depends_on:
|
||||
- postgres
|
||||
- rabbitmq
|
||||
|
||||
Reference in New Issue
Block a user