Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- db:
- image: postgres
- volumes:
- - ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
- ports:
- - "5432:5432"
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U postgres"]
- interval: 30s
- timeout: 30s
- retries: 3
- app:
- depends_on:
- - db
- links:
- - db:postgres
- restart: on-failure
- build: .
- command: go run server.go
- ports:
- - "7777:80"
- environment:
- - POSTGRES_DB=postgres
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=mynameisjeff
- - DB_HOST=postgres
- - DB_PORT=5432
- - DEBUG=Y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement