-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.39 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
version: '3.4'
services:
workspace: &workspace
build:
context: .
dockerfile: ./.dockerdev/Dockerfile
args:
golangVersion: '1.13.0'
golangciLintVersion: '1.21.0'
image: utm_postback_middle:latest
command: /bin/sh -c 'exit 0'
entrypoint: ''
environment:
GO111MODULE: 'on'
HISTFILE: /app/.bash_history
EDITOR: vim
volumes:
- .:/app:cached
- go-modules:/go/pkg/mod
app:
<<: *workspace
stdin_open: true
tty: true
ports:
- '127.0.0.1:3000:3000'
depends_on:
- postgresql
postgresql:
image: postgres:11.1-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PSQL_HISTFILE: /root/.psql_history
volumes:
- postgresql:/var/lib/postgresql/data
- ./.psql_history:/root/.psql_history
postgresql-runner:
image: postgres:11.1-alpine
command: /bin/sh -c 'exit 0'
entrypoint: ''
stdin_open: true
tty: true
environment:
PSQL_HISTFILE: /root/.psql_history
PGPASSWORD: postgres
volumes:
- ./.psql_history:/root/.psql_history
depends_on:
- postgresql
volumes:
go-modules:
postgresql: