2018-05-17 18:35:53 +03:00
|
|
|
version: '2.1'
|
|
|
|
|
|
|
|
services:
|
2018-05-29 17:20:56 +03:00
|
|
|
postgres_test:
|
2018-05-17 18:35:53 +03:00
|
|
|
image: postgres:9.6
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: mg_telegram_test
|
|
|
|
POSTGRES_PASSWORD: mg_telegram_test
|
|
|
|
POSTGRES_DATABASE: mg_telegram_test
|
|
|
|
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
|
|
|
|
2018-05-29 17:20:56 +03:00
|
|
|
mg_telegram_test:
|
2018-05-17 18:35:53 +03:00
|
|
|
image: golang:1.9.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}
|
|
|
|
volumes:
|
2018-05-31 15:03:57 +03:00
|
|
|
- ./:/mgtg/
|
|
|
|
- ./static:/static/
|
2018-05-17 18:35:53 +03:00
|
|
|
links:
|
2018-05-29 17:20:56 +03:00
|
|
|
- postgres_test
|
2018-05-25 16:01:58 +03:00
|
|
|
ports:
|
|
|
|
- ${MG_TELEGRAM_ADDRESS:-3002}:3002
|