23 lines
594 B
YAML
23 lines
594 B
YAML
version: '2.1'
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:9.6
|
|
environment:
|
|
POSTGRES_USER: mg_telegram_test
|
|
POSTGRES_PASSWORD: mg_telegram_test
|
|
POSTGRES_DATABASE: mg_telegram_test
|
|
ports:
|
|
- ${POSTGRES_ADDRESS:-127.0.0.1:5450}:${POSTGRES_PORT:-5450}
|
|
|
|
mg_telegram:
|
|
image: golang:1.9.3-stretch
|
|
working_dir: /mg_telegram
|
|
user: ${UID:-1000}:${GID:-1000}
|
|
volumes:
|
|
- ./:/mg_telegram/
|
|
links:
|
|
- postgres
|
|
ports:
|
|
- ${MG_TELEGRAM_ADDRESS:-3002}:3002
|