-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 1.73 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
services:
janux-auth-gateway:
image: janux-auth-gateway:latest
build: .
ports:
- "8000:8000"
depends_on:
- mongodb
- redis
environment:
ENVIRONMENT: "test"
MONGO_DATABASE_NAME: "users_db"
REDIS_HOST: "redis"
REDIS_PORT: "6379"
ALLOWED_ORIGINS: "*"
ACCESS_TOKEN_EXPIRE_MINUTES: "20"
TOKEN_ISSUER: "JANUX-server"
TOKEN_AUDIENCE: "JANUX-application"
USER_TOKEN_URL: "/auth/login"
ADMIN_TOKEN_URL: "/auth/login"
secrets:
- janux_encryption_key
- jwt_private_key
- jwt_public_key
- mongo_uri
- mongo_admin_email
- mongo_admin_password
- mongo_admin_fullname
- mongo_admin_role
- mongo_user_email
- mongo_user_password
- mongo_user_fullname
- mongo_user_role
networks:
- janux-network
mongodb:
image: mongo:6.0
container_name: mongodb
restart: unless-stopped
volumes:
- mongo-data:/data/db
environment:
MONGO_INITDB_DATABASE: "users_db"
networks:
- janux-network
redis:
image: redis:latest
container_name: redis
restart: unless-stopped
networks:
- janux-network
networks:
janux-network:
external: true
volumes:
mongo-data:
secrets:
janux_encryption_key:
external: true
jwt_private_key:
external: true
jwt_public_key:
external: true
mongo_uri:
external: true
mongo_admin_email:
external: true
mongo_admin_password:
external: true
mongo_admin_fullname:
external: true
mongo_admin_role:
external: true
mongo_user_email:
external: true
mongo_user_password:
external: true
mongo_user_fullname:
external: true
mongo_user_role:
external: true