30 lines
543 B
YAML
30 lines
543 B
YAML
|
version: '3'
|
||
|
services:
|
||
|
db:
|
||
|
image: postgres
|
||
|
environment:
|
||
|
POSTGRES_DB: db_genity
|
||
|
POSTGRES_USER: root_user
|
||
|
POSTGRES_PASSWORD: shahzad12
|
||
|
volumes:
|
||
|
- db_postgres:/var/lib/postgresql/data
|
||
|
ports:
|
||
|
- "5436:5432"
|
||
|
networks:
|
||
|
- genity_network
|
||
|
app:
|
||
|
build: ""
|
||
|
command: [ "go", "run", "main.go","api.go"]
|
||
|
ports:
|
||
|
- "8080:8080"
|
||
|
depends_on:
|
||
|
- db
|
||
|
links:
|
||
|
- db
|
||
|
networks:
|
||
|
- genity_network
|
||
|
volumes:
|
||
|
db_postgres:
|
||
|
networks:
|
||
|
genity_network:
|
||
|
driver: bridge
|