mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-19 17:34:43 +00:00
46 lines
942 B
YAML
46 lines
942 B
YAML
version: "3.7"
|
|
|
|
# Service Definitions
|
|
services:
|
|
|
|
db:
|
|
image: postgres:11.5
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_DB: "t2_stats"
|
|
POSTGRES_USER: "${POSTGRES_USER}"
|
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
|
|
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
|
|
|
|
|
|
parser:
|
|
build:
|
|
context: .
|
|
dockerfile: ./build/go-t2-stat-parser/Dockerfile
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
DATABASE_URL: "postgres://${POSTGRES_USER}:{POSTGRES_PASSWORD}@db:5432/t2_stats"
|
|
FTP_HOST: "${FTP_HOST}"
|
|
FTP_USER: "${FTP_USER}"
|
|
FTP_PW: "${FTP_PW}"
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- internal
|
|
- external
|
|
|
|
|
|
volumes:
|
|
psqldata:
|
|
|
|
|
|
networks:
|
|
external:
|
|
internal: |