-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
148 lines (138 loc) · 2.91 KB
/
compose.yaml
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
147
148
services:
traefik:
image: "traefik:v3"
container_name: "traefik"
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- web
postgresdb:
image: postgres:17
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
healthcheck:
test:
[
"CMD",
"pg_isready",
"-q",
"-d",
"${POSTGRES_DB}",
"-U",
"${POSTGRES_USER}",
]
interval: 5s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- internal
falak:
build:
context: ./falak
dockerfile: "Dockerfile"
env_file: ./falak/falak.env
environment:
DB_USER: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_PASSWORD}
DB_HOST: postgresdb
DB_PORT: ${POSTGRES_PORT}
DB_NAME: ${POSTGRES_DB}
DB_SSL_MODE: disable
PORT: ${FALAK_PORT}
depends_on:
postgresdb:
condition: service_healthy
loki:
condition: service_started
networks:
- web
- internal
website:
build:
context: ./website
dockerfile: Dockerfile
networks:
- web
grafana:
image: grafana/grafana:latest
entrypoint:
- sh
- -euc
- |
mkdir -p /etc/grafana/provisioning/datasources
cat <<EOF > /etc/grafana/provisioning/datasources/ds.yaml
apiVersion: 1
datasources:
- name: Loki
type: loki
access: proxy
orgId: 1
url: http://loki:3100
basicAuth: false
isDefault: true
version: 1
editable: false
EOF
/run.sh
networks:
- web
- internal
volumes:
- grafana-storage:/var/lib/grafana
depends_on:
loki:
condition: service_started
loki:
image: grafana/loki:3.3.2
command: -config.file=/etc/loki/local-config.yaml
networks:
- internal
volumes:
- loki-storage:/loki
baikal:
image: ckulka/baikal:nginx
networks:
- web
volumes:
- baikal-config:/var/www/baikal/config
- baikal-data:/var/www/baikal/Specific
mongodb:
image: mongo:latest
networks:
- internal
volumes:
- mongodb-data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 5
wasapp:
build:
context: ./wasapp
dockerfile: Dockerfile
env_file: ./wasapp/.env
depends_on:
mongodb:
condition: service_healthy
networks:
- internal
volumes:
- wasapp-wwebjs_auth:/app/.wwebjs_auth
volumes:
postgres_data:
grafana-storage:
loki-storage:
baikal-config:
baikal-data:
mongodb-data:
wasapp-wwebjs_auth:
networks:
web:
internal: