2020-02-06 21:26:32 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
|
|
# Service Definitions
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
|
|
db:
|
|
|
|
|
image: postgres:11.5
|
|
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_DB: "t2_stats"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./build/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
|
|
|
|
- ./build/postgres/export_local_db.sh:/export_local_db.sh
|
|
|
|
|
- psqldata:/var/lib/postgresql/data
|
|
|
|
|
networks:
|
|
|
|
|
- internal
|
|
|
|
|
|
|
|
|
|
|
2020-03-07 18:59:09 +00:00
|
|
|
parser:
|
2020-02-06 21:26:32 +00:00
|
|
|
build:
|
|
|
|
|
context: .
|
2020-03-07 18:59:09 +00:00
|
|
|
dockerfile: ./build/go-t2-stat-parser/Dockerfile
|
2020-02-06 21:26:32 +00:00
|
|
|
ports:
|
|
|
|
|
- "8080:8080"
|
|
|
|
|
depends_on:
|
|
|
|
|
- db
|
|
|
|
|
networks:
|
|
|
|
|
- internal
|
|
|
|
|
- external
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# secrets:
|
|
|
|
|
# - prod.postgres.host
|
|
|
|
|
# - prod.postgres.username
|
|
|
|
|
# - prod.postgres.password
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
psqldata:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
external:
|
|
|
|
|
internal:
|