-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
77 lines (77 loc) · 1.71 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
version: '3'
services:
app:
container_name: go-boilerplate
restart: always
build: .
ports:
- 5000:5000
- 5001:5001
depends_on:
- db-postgres
db-postgres:
image: postgres:latest
restart: always
container_name: db-postgres
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: saas_db
ports:
- 5432:5432
volumes:
- database_postgres:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4
restart: always
container_name: pgadmin_container
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: newpassword
depends_on:
- db-postgres
ports:
- 5050:80
volumes:
- pgadmin:/var/lib/pgadmin
sentry:
image: sentry
restart: always
container_name: sentry
links:
- db-postgres
ports:
- 9001:9000
environment:
SENTRY_SECRET_KEY: '!!!SECRET!!!'
SENTRY_POSTGRES_HOST: db-postgres
SENTRY_DB_USER: root
SENTRY_DB_PASSWORD: root
SENTRY_REDIS_HOST: db-redis
cron:
image: sentry
restart: always
links:
- db-postgres
command: "sentry run cron"
environment:
SENTRY_SECRET_KEY: '!!!SECRET!!!'
SENTRY_POSTGRES_HOST: db-postgres
SENTRY_DB_USER: root
SENTRY_DB_PASSWORD: root
SENTRY_REDIS_HOST: db-redis
worker:
image: sentry
restart: always
links:
- db-postgres
command: "sentry run worker"
environment:
SENTRY_SECRET_KEY: '!!!SECRET!!!'
SENTRY_POSTGRES_HOST: db-postgres
SENTRY_DB_USER: root
SENTRY_DB_PASSWORD: root
SENTRY_REDIS_HOST: db-redis
volumes:
database_postgres:
pgadmin: