-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.14 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
version: '3'
services:
db:
image: postgres:latest
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_INITDB_ARGS: "--encoding=UTF-8"
POSTGRES_DB: connefut_db
TZ: "Asia/Tokyo"
ports:
- "5432:5432"
volumes:
- postgresql-data:/var/lib/postgresql/data
pgweb:
image: sosedoff/pgweb
ports:
- "8081:8081"
environment:
- DATABASE_URL=postgres://root:password@db:5432/connefut_db?sslmode=disable
depends_on:
- db
web:
build: .
ports:
- 8080:8080
volumes:
- .:/go/src/app
- ~/.config/gcloud/application_default_credentials.json:/var/application_default_credentials.json
environment:
TZ: 'Asia/Tokyo'
GO_ENV: 'develop'
GOOGLE_APPLICATION_CREDENTIALS: '/var/application_default_credentials.json'
tty: true
links:
- mailhog
depends_on:
- db
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
environment:
MH_STORAGE: maildir
MH_MAILDIR_PATH: /tmp
volumes:
- maildir:/tmp
volumes:
postgresql-data:
driver: local
maildir: