-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.tmpl
65 lines (62 loc) · 1.45 KB
/
docker-compose.tmpl
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
services:
myas_client:
image: $CI_REGISTRY_IMAGE:main_frontend
container_name: myasClient
environment:
- HOST=$HOST
expose:
- 5173
networks:
- caddy_net
myas_server:
image: $CI_REGISTRY_IMAGE:main_backend
container_name: myasServer
ports:
- "8088:8080"
environment:
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- REDIS_DB=${REDIS_DB}
- AES_KEY=${AES_KEY}
- JWT_ACCESS_SECRET=${JWT_ACCESS_SECRET}
- JWT_REFRESH_SECRET=${JWT_REFRESH_SECRET}
- ACCESS_TOKEN_EXPIRES_IN=${ACCESS_TOKEN_EXPIRES_IN}
- REFRESH_TOKEN_EXPIRES_IN=${REFRESH_TOKEN_EXPIRES_IN}
- VERIFICATION_EXPIRES_IN=${VERIFICATION_EXPIRES_IN}
depends_on:
myas_redis:
condition: service_healthy
networks:
- caddy_net
myas_redis:
container_name: myas_redis
image: redis:alpine
ports:
- "6379:6379"
volumes:
- ./data:/data
environment:
- REDIS_REQUIREPASS=${REDIS_PASSWORD}
healthcheck:
test:
[
"CMD",
"redis-cli",
"-h",
"localhost",
"-p",
"6379",
"-a",
"${REDIS_PASSWORD}",
"ping",
]
interval: 5s
timeout: 5s
retries: 3
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
networks:
- caddy_net
networks:
caddy_net:
external: true