mg-bot-helper/docker-compose.yml
Alex Lushpai 5c7d21345f init
2018-12-11 20:35:48 +03:00

26 lines
647 B
YAML

version: '2.1'
services:
postgres:
image: postgres:9.6
environment:
POSTGRES_USER: mg_bot
POSTGRES_PASSWORD: mg_bot
POSTGRES_DATABASE: mg_bot
ports:
- ${POSTGRES_ADDRESS:-127.0.0.1:5434}:${POSTGRES_PORT:-5432}
mg_bot:
image: golang:1.11-stretch
working_dir: /mg-bot
user: ${UID:-1000}:${GID:-1000}
environment:
GOCACHE: /go
volumes:
- ./:/mg-bot/
- ./static:/static/
links:
- postgres
ports:
- ${mg_bot_ADDRESS:-3001}:3001
command: make run