-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
105 lines (93 loc) · 2.2 KB
/
compose.yaml
File metadata and controls
105 lines (93 loc) · 2.2 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
networks:
default:
name: oauth
ipam:
config:
- subnet: 10.0.0.0/27
ip_range: 10.0.0.0/27
gateway: 10.0.0.1
volumes:
database-data:
cache-data:
services:
database:
image: surrealdb/surrealdb:latest
container_name: oauth-database
entrypoint: /surreal start surrealkv://data
user: 0:0
environment:
SURREAL_STRICT: true
SURREAL_AUTH: true
SURREAL_USER: root
SURREAL_PASS: root
expose:
- 8000
volumes:
- database-data:/data
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8000/health"]
interval: 5s
timeout: 3s
retries: 10
ports:
- "8000:8000"
# cache:
# image: valkey/valkey:latest
# container_name: oauth-cache
# entrypoint: valkey-server --appendonly yes
# expose:
# - 6379
# volumes:
# - cache-data:/data
# api:
# build: ./api
# image: oauth/api:latest
# container_name: oauth-api
# depends_on:
# database:
# condition: service_healthy
# cache:
# condition: service_started
# environment:
# APP_HOST: 0.0.0.0
# APP_PORT: 3000
# APP_ENV: production
# RUST_LOG: info
# SURREAL_URL: ws://database:8000/rpc
# SURREAL_NAMESPACE: auth
# SURREAL_DATABASE: auth
# SURREAL_USER: root
# SURREAL_PASS: root
# VALKEY_URL: redis://cache:6379
# JWT_ISSUER: http://acme.local
# JWT_AUDIENCE: api
# JWT_TTL_SECONDS: 900
# REFRESH_TTL_SECONDS: 2592000
# expose:
# - 3000
# management:
# build: ./management
# image: oauth/management:latest
# container_name: oauth-management
# depends_on:
# api:
# condition: service_started
# environment:
# APP_HOST: 0.0.0.0
# APP_PORT: 3000
# NODE_ENV: production
# NUXT_PUBLIC_BASE_URL: http://acme.local
# expose:
# - 3000
# proxy:
# container_name: oauth-proxy
# image: nginx:latest
# depends_on:
# api:
# condition: service_started
# management:
# condition: service_started
# ports:
# - "0.0.0.0:80:80"
# volumes:
# - ./proxy:/etc/nginx/conf.d