generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
131 lines (123 loc) · 3.45 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
version: '3'
services:
WIQ_DB:
container_name: postgresql-${teamname:-defaultASW}
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
image: postgres:latest
profiles: ["dev", "prod","e2e"]
networks:
mynetwork:
api:
container_name: api-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_en2b/api:latest
profiles: ["dev", "prod","e2e"]
build:
context: ./api
args:
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
SSL_PASSWORD: ${SSL_PASSWORD}
environment:
- DATABASE_URL=jdbc:postgresql://WIQ_DB:5432/wiq
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
- JWT_SECRET=${JWT_SECRET}
- SSL_PASSWORD=${SSL_PASSWORD}
ports:
- 8443:8443
networks:
mynetwork:
volumes:
- /certs:/etc/letsencrypt/live/kiwiq.run.place:ro
depends_on:
- WIQ_DB
- kiwiq
question-generator:
container_name: question-generator-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_en2b/question-generator:latest
profiles: ["dev", "prod","e2e"]
build:
context: ./questiongenerator
args:
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
environment:
- DATABASE_URL=jdbc:postgresql://WIQ_DB:5432/wiq
- DATABASE_USER=${DATABASE_USER}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
networks:
mynetwork:
depends_on:
- WIQ_DB
kiwiq:
image: ghcr.io/arquisoft/wiq_en2b/kiwiq:latest
container_name: kiwiq
profiles: ["dev", "prod","e2e"]
networks:
mynetwork:
links:
- webapp
ports:
- "443:443"
depends_on:
- webapp
volumes:
- /certs:/etc/letsencrypt/live/kiwiq.run.place:ro
build:
context: ./nginx_conf
webapp:
container_name: webapp-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_en2b/webapp:latest
profiles: [ "dev", "prod","e2e" ]
build:
args:
REACT_APP_API_ENDPOINT: ${API_URI}
context: ./webapp
environment:
- REACT_APP_API_ENDPOINT=${API_URI}
networks:
mynetwork:
prometheus:
image: ghcr.io/arquisoft/wiq_en2b/prometheus:latest
container_name: prometheus-${teamname:-defaultASW}
profiles: ["dev", "prod"]
ports:
- "9090:9090"
networks:
mynetwork:
environment:
- API_URI=${API_URI}
volumes:
- prometheus_data:/prometheus
- /certs:/etc/letsencrypt/kiwiq.run.place:ro
depends_on:
- api
grafana:
image: ghcr.io/arquisoft/wiq_en2b/grafana:latest
container_name: grafana-${teamname:-defaultASW}
profiles: [ "dev" , "prod"]
networks:
mynetwork:
volumes:
- grafana_data:/var/lib/grafana
- /certs:/etc/letsencrypt/kiwiq.run.place:ro
ports:
- "9091:9091"
environment:
- GF_SERVER_HTTP_PORT=9091
#- GF_AUTH_DISABLE_LOGIN_FORM=true
depends_on:
- prometheus
volumes:
postgres_data:
prometheus_data:
grafana_data:
certs:
networks:
mynetwork:
driver: bridge