-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
146 lines (135 loc) · 2.99 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
version: '3.4'
name: valghalla
networks:
valghalla:
driver: bridge
services:
nginx:
container_name: nginx
image: nginx
build:
context: .
dockerfile: Dockerfile.nginx
depends_on:
- valghalla.internal
- valghalla.external
restart: always
ports:
- "80:80"
- "443:443"
networks:
- valghalla
volumes:
- nginx:/etc/nginx
valghalla.internal:
container_name: valghalla-internal-application
depends_on:
- valghalla.database
- valghalla.queue
image: valghallainternal
build:
context: .
dockerfile: Valghalla.Internal.API/Dockerfile
networks:
- valghalla
ports:
- "4579:80"
volumes:
- 'internal_logging:/logs'
- 'certs:/certs/'
- 'environment:/Environment/'
valghalla.worker:
container_name: valghalla-worker
depends_on:
- valghalla.database
- valghalla.queue
image: valghallaworker
build:
context: .
dockerfile: Valghalla.Worker/Dockerfile
volumes:
- 'worker_logging:/logs'
networks:
- valghalla
valghalla.external:
container_name: valghalla-external-application
depends_on:
- valghalla.database
- valghalla.queue
image: valghallaexternal
build:
context: .
dockerfile: Valghalla.External.API/Dockerfile
networks:
- valghalla
ports:
- "4581:80"
volumes:
- 'external_logging:/logs'
- 'certs:/certs/'
- 'environment:/Environment/'
valghalla.messagereceiver:
container_name: valghalla-message-receiver
depends_on:
- valghalla.database
- valghalla.queue
image: valghallamessagereceiver
build:
context: .
dockerfile: Valghalla.MessageReceiver/Dockerfile
networks:
- valghalla
ports:
- "4577:80"
- "4578:443"
volumes:
- 'message_logging:/logs'
valghalla.database:
container_name: valghalla-database
image: docker.io/bitnami/postgresql:15
networks:
- valghalla
volumes:
- 'postgresql_data:/bitnami/postgresql'
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
#- POSTGRESQL_USERNAME=postgres
#- POSTGRESQL_DATABASE=postgres
#- POSTGRESQL_PASSWORD='admin'
ports:
- '5433:5432'
valghalla.queue:
container_name: valghalla-queue
image: docker.io/bitnami/rabbitmq:3.12
networks:
- valghalla
ports:
- '4369:4369'
- '5551:5551'
- '5552:5552'
- '5672:5672'
- '25672:25672'
- '15672:15672'
environment:
- RABBITMQ_LOGS=-
volumes:
- 'rabbitmq_data:/bitnami/rabbitmq/mnesia'
volumes:
postgresql_data:
driver: local
rabbitmq_data:
driver: local
message_logging:
driver: local
worker_logging:
driver: local
internal_logging:
driver: local
external_logging:
driver: local
certs:
driver: local
environment:
driver: local
nginx:
driver: local