-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
86 lines (86 loc) · 1.87 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.8"
services:
app:
image: library/golang:1.16
environment:
- APP_DRIVER=postgres
- APP_DATASOURCE=host=db port=5432 user=local dbname=local password=password sslmode=disable
- METABASE_SECRET=<INSTERT_SECRET_HERE>
- METABASE_URL=metabase:3000
- OTP_SECRET=123-456-789
- APP_LOG_LEVEL=info
volumes:
- ./:/app
working_dir: /app
depends_on:
- db
- mailhog
ports:
- "8023:80"
networks:
- main
command: "go run ./main.go"
appbuild:
build: .
environment:
- APP_DRIVER=postgres
- APP_DATASOURCE=host=db port=5432 user=local dbname=local password=password sslmode=disable
- METABASE_SECRET=<INSTERT_SECRET_HERE>
- METABASE_URL=metabase:3000
depends_on:
- mailhog
- db
ports:
- "8023:80"
networks:
- main
db:
image: postgres
environment:
- POSTGRES_DB=local
- POSTGRES_USER=local
- POSTGRES_PASSWORD=password
ports:
- "18034:5432"
networks:
- main
mdb:
image: postgres
environment:
- POSTGRES_DB=local
- POSTGRES_USER=local
- POSTGRES_PASSWORD=password
ports:
- "18038:5432"
networks:
- main
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
networks:
- main
metabase:
image: metabase/metabase
restart: always
environment:
MB_DB_TYPE: 'postgres'
MB_DB_DBNAME: 'local'
MB_DB_PORT: '5432'
MB_DB_USER: 'local'
MB_DB_HOST: 'mdb'
MB_DB_PASS: 'password'
# JAVA_TIMEZONE: '${MB_JAVA_TIMEZONE}'
ports:
# <Port exposed>:<Port running inside container>
- '3000:3000'
volumes:
# Volumes where Metabase data will be persisted
- './mb-data:/metabase-data'
depends_on:
- db
networks:
- main
networks:
main: