-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.debug.yml
105 lines (95 loc) · 2.2 KB
/
docker-compose.debug.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3'
services:
broker-service:
build:
context: ./broker-service
dockerfile: broker-service.dockerfile
restart: always
ports:
- "8080:80"
deploy:
mode: replicated
replicas: 1
logger-service:
build:
context: ./logger-service
dockerfile: logger-service.dockerfile
restart: always
deploy:
mode: replicated
replicas: 1
mailer-service:
build:
context: ./mail-service
dockerfile: mail-service.dockerfile
restart: always
deploy:
mode: replicated
replicas: 1
environment:
MAIL_DOMAIN: localhost
MAIL_HOST: mailhog
MAIL_PORT: 1025
MAIL_ENCRYPTION: none
MAIL_USERNAME: ""
MAIL_PASSWORD: ""
FROM_NAME: "pi"
FROM_ADDRESS: [email protected]
authentication-service:
build:
context: ./authentication-service
dockerfile: authentication-service.debug.dockerfile
restart: always
ports:
- "8081:80"
- "2345:2345"
deploy:
mode: replicated
replicas: 1
environment:
DSN: "host=postgres port=5432 user=postgres password=password dbname=users sslmode=disable timezone=UTC connect_timeout=5"
listener-service:
build:
context: ./listener-service
dockerfile: listener-service.dockerfile
deploy:
mode: replicated
replicas: 1
postgres:
image: 'postgres:14.2'
ports:
- "5432:5432"
restart: always
deploy:
mode: replicated
replicas: 1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: users
volumes:
- ./db-data/postgres/:/var/lib/postgresql/data/
mongo:
image: 'mongo:4.2.16-bionic'
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: logs
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- ./db-data/mongo/:/data/db
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- "1025:1025"
- "8025:8025"
rabbitmq:
image: 'rabbitmq:3.9-alpine'
ports:
- "5672:5672"
deploy:
mode: replicated
replicas: 1
volumes:
- ./db-data/rabbitmq/:/var/lib/rabbitmq/