github.com/retailcrm/mg-bot-helper@v0.0.0-20201229112329-a17255681a84/docker-compose.yml (about)

     1  version: '2.1'
     2  
     3  services:
     4      postgres:
     5          image: postgres:9.6
     6          environment:
     7              POSTGRES_USER: mg_bot
     8              POSTGRES_PASSWORD: mg_bot
     9              POSTGRES_DATABASE: mg_bot
    10          ports:
    11              - ${POSTGRES_ADDRESS:-127.0.0.1:5434}:${POSTGRES_PORT:-5432}
    12  
    13      mg_bot:
    14          image: golang:1.11-stretch
    15          working_dir: /mg-bot
    16          user: ${UID:-1000}:${GID:-1000}
    17          environment:
    18              GOCACHE: /go
    19          volumes:
    20              - ./:/mg-bot/
    21              - ./static:/static/
    22          links:
    23              - postgres
    24          ports:
    25              - ${mg_bot_ADDRESS:-3001}:3001
    26          command: make run