-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
162 lines (153 loc) · 3.57 KB
/
docker-compose.yaml
File metadata and controls
162 lines (153 loc) · 3.57 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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
services:
traefik:
image: traefik:v3.7
container_name: traefik
command:
- --api.dashboard=true
- --api.insecure=false
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --providers.file.filename=/etc/traefik/dynamic.yaml
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
ports:
- '80:80'
- '443:443'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./.docker/traefik/dynamic.yaml:/etc/traefik/dynamic.yaml:ro
- ./.docker/traefik/certs:/etc/traefik/certs:ro
networks:
- proxy
labels:
- traefik.enable=true
- traefik.http.routers.traefik.rule=Host(`traefik.fbi.com`)
- traefik.http.routers.traefik.entrypoints=websecure
- traefik.http.routers.traefik.tls=true
- traefik.http.routers.traefik.service=api@internal
deploy:
resources:
limits:
memory: 64M
cpus: '0.50'
restart: unless-stopped
timescaledb:
image: timescale/timescaledb:latest-pg16
container_name: timescaledb
command:
- postgres
- -c
- shared_buffers=48MB
- -c
- work_mem=2MB
- -c
- maintenance_work_mem=32MB
- -c
- autovacuum_work_mem=16MB
- -c
- temp_buffers=4MB
- -c
- effective_cache_size=128MB
environment:
POSTGRES_DB: ${POSTGRES_DB:-app}
POSTGRES_USER: ${POSTGRES_USER:-app}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-app_password}
ports:
- '5432:5432'
volumes:
- timescaledb_data:/var/lib/postgresql/data
networks:
- backend
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-app} -d ${POSTGRES_DB:-app}']
interval: 10s
timeout: 5s
retries: 5
shm_size: 128m
deploy:
resources:
limits:
memory: 192M
cpus: '1.00'
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: redis
command: redis-server --save '' --appendonly no --maxmemory 32mb --maxmemory-policy allkeys-lru
ports:
- '6379:6379'
networks:
- backend
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 5
deploy:
resources:
limits:
memory: 48M
cpus: '0.50'
restart: unless-stopped
iam-portal:
image: traefik/whoami:latest
container_name: iam-portal
networks:
- proxy
deploy:
resources:
limits:
memory: 16M
cpus: '0.25'
restart: unless-stopped
aig-admin:
image: traefik/whoami:latest
container_name: aig-admin
networks:
- proxy
deploy:
resources:
limits:
memory: 16M
cpus: '0.25'
restart: unless-stopped
aig-portal:
image: traefik/whoami:latest
container_name: aig-portal
networks:
- proxy
deploy:
resources:
limits:
memory: 16M
cpus: '0.25'
restart: unless-stopped
iam-service:
image: traefik/whoami:latest
container_name: iam-service
networks:
- proxy
deploy:
resources:
limits:
memory: 16M
cpus: '0.25'
restart: unless-stopped
aig-core-service:
image: traefik/whoami:latest
container_name: aig-core-service
networks:
- proxy
deploy:
resources:
limits:
memory: 16M
cpus: '0.25'
restart: unless-stopped
networks:
proxy:
driver: bridge
backend:
driver: bridge
volumes:
timescaledb_data: