2018-05-17 18:35:53 +03:00
|
|
|
version: '2.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:9.6
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: mg_telegram
|
|
|
|
POSTGRES_PASSWORD: mg_telegram
|
|
|
|
POSTGRES_DATABASE: mg_telegram
|
|
|
|
ports:
|
2018-05-31 15:03:57 +03:00
|
|
|
- ${POSTGRES_ADDRESS:-127.0.0.1:5434}:${POSTGRES_PORT:-5432}
|
2018-05-17 18:35:53 +03:00
|
|
|
|
|
|
|
mg_telegram:
|
2018-12-20 15:02:10 +03:00
|
|
|
image: golang:1.11.3-stretch
|
2018-05-31 15:03:57 +03:00
|
|
|
working_dir: /mgtg
|
2018-05-17 18:35:53 +03:00
|
|
|
user: ${UID:-1000}:${GID:-1000}
|
2018-08-17 13:36:25 +03:00
|
|
|
environment:
|
|
|
|
GOCACHE: /go
|
2018-05-17 18:35:53 +03:00
|
|
|
volumes:
|
2018-05-31 15:03:57 +03:00
|
|
|
- ./:/mgtg
|
2018-05-28 18:16:13 +03:00
|
|
|
- ./static:/static/
|
2018-05-17 18:35:53 +03:00
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
ports:
|
|
|
|
- ${MG_TELEGRAM_ADDRESS:-3001}:3001
|
|
|
|
command: make run
|