-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
144 lines (134 loc) · 3.21 KB
/
docker-compose.yml
File metadata and controls
144 lines (134 loc) · 3.21 KB
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
services:
web:
container_name: FFXIVVenues.Web
image: ffxivvenues/ffxivvenues.web:${IMAGE_TAG}
restart: unless-stopped
networks:
- web
environment:
- VITE_FFXIV_VENUES_API_ROOT=${API_PUBLIC_URI}
api:
container_name: FFXIVVenues.ApiGateway
image: ffxivvenues/ffxivvenues.apigateway:${IMAGE_TAG}
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
volumes:
- api-media:/app/media:rw
networks:
- ffxivvenues
- web
env_file:
- apigateway.env
flagservice:
container_name: FFXIVVenues.FlagService
image: ffxivvenues/ffxivvenues.flagservice:${IMAGE_TAG}
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
networks:
- ffxivvenues
env_file:
- flagservice.env
ogcard:
container_name: FFXIVVenues.OGCardService
image: ffxivvenues/ffxivvenues.ogcardservice:${IMAGE_TAG}
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
networks:
- ffxivvenues
- web
env_file:
- ogcardservice.env
postgres:
container_name: FFXIVVenues.Api.Postgres
image: postgres
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql
networks:
- ffxivvenues
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 10
veni:
container_name: FFXIVVenues.Veni
image: ffxivvenues/ffxivvenues.veni:${IMAGE_TAG}
restart: unless-stopped
depends_on:
mongo:
condition: service_healthy
networks:
- ffxivvenues
env_file:
- veni.env
mongo:
container_name: FFXIVVenues.Veni.Mongo
image: mongo
restart: unless-stopped
volumes:
- mongo-data:/data/db
networks:
- ffxivvenues
healthcheck:
test: ["CMD-SHELL", "mongosh --username ${MONGO_USER} --password ${MONGO_PASSWORD} --eval 'db.adminCommand(\"ping\")' || exit 1"]
interval: 5s
timeout: 5s
retries: 10
rabbitmq:
container_name: FFXIVVenues.RabbitMQ
image: rabbitmq
restart: unless-stopped
networks:
- ffxivvenues
volumes:
- rabbitmq-data:/var/lib/rabbitmq
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "is_running"]
interval: 5s
timeout: 5s
retries: 10
nginx:
container_name: nginx
image: nginx
volumes:
- ./nginx/config:/etc/nginx/conf.d:ro
- ./nginx/certs:/etc/nginx/certs:ro
ports:
- "80:80"
- "443:443"
networks:
- web
restart: always
depends_on:
- web
- api
volumes:
postgres-data:
name: FFXIVVenues.Api.Postgres.Data
api-media:
name: FFXIVVenues.Api.MediaData
mongo-data:
name: FFXIVVenues.Veni.Mongo.Data
rabbitmq-data:
name: FFXIVVenues.RabbitMQ.Data
networks:
web:
name: Web
ffxivvenues:
name: FFXIVVenues.Network