11networks :
22 default :
3- name : oauth
3+ name : auth
44 ipam :
55 config :
66 - subnet : 10.0.0.0/27
@@ -14,7 +14,7 @@ volumes:
1414services :
1515 database :
1616 image : surrealdb/surrealdb:latest
17- container_name : oauth -database
17+ container_name : auth -database
1818 entrypoint : /surreal start surrealkv://data
1919 user : 0:0
2020 environment :
@@ -34,72 +34,70 @@ services:
3434 ports :
3535 - " 8000:8000"
3636
37- # cache:
38- # image: valkey/valkey:latest
39- # container_name: oauth -cache
40- # entrypoint: valkey-server --appendonly yes
41- # expose:
42- # - 6379
43- # volumes:
44- # - cache-data:/data
37+ cache :
38+ image : valkey/valkey:latest
39+ container_name : auth -cache
40+ entrypoint : valkey-server --appendonly yes
41+ expose :
42+ - 6379
43+ volumes :
44+ - cache-data:/data
4545
46- # api:
47- # build: ./api
48- # image: oauth/api:latest
49- # container_name: oauth-api
50- # depends_on:
51- # database:
52- # condition: service_healthy
53- # cache:
54- # condition: service_started
55- # environment:
56- # APP_HOST: 0.0.0.0
57- # APP_PORT: 3000
46+ api :
47+ image : ghcr.io/not-byte/auth/api:latest
48+ container_name : oauthi
49+ depends_on :
50+ database :
51+ condition : service_healthy
52+ cache :
53+ condition : service_started
54+ environment :
55+ APP_HOST : 0.0.0.0
56+ APP_PORT : 3000
5857
59- # APP_ENV: production
60- # RUST_LOG: info
58+ APP_ENV : production
59+ RUST_LOG : info
6160
62- # SURREAL_URL: ws://database:8000/rpc
63- # SURREAL_NAMESPACE: auth
64- # SURREAL_DATABASE: auth
65- # SURREAL_USER: root
66- # SURREAL_PASS: root
61+ SURREAL_URL : ws://database:8000/rpc
62+ SURREAL_NAMESPACE : auth
63+ SURREAL_DATABASE : auth
64+ SURREAL_USER : root
65+ SURREAL_PASS : root
6766
68- # VALKEY_URL: redis://cache:6379
67+ VALKEY_URL : redis://cache:6379
6968
70- # JWT_ISSUER: http://acme.local
71- # JWT_AUDIENCE: api
72- # JWT_TTL_SECONDS: 900
73- # REFRESH_TTL_SECONDS: 2592000
74- # expose:
75- # - 3000
69+ JWT_ISSUER : http://acme.local
70+ JWT_AUDIENCE : api
71+ JWT_TTL_SECONDS : 900
72+ REFRESH_TTL_SECONDS : 2592000
73+ expose :
74+ - 3000
7675
77- # management:
78- # build: ./management
79- # image: oauth/management:latest
80- # container_name: oauth-management
81- # depends_on:
82- # api:
83- # condition: service_started
84- # environment:
85- # APP_HOST: 0.0.0.0
86- # APP_PORT: 3000
76+ management :
77+ image : ghcr.io/not-byte/auth/management:latest
78+ container_name : auth-management
79+ depends_on :
80+ api :
81+ condition : service_started
82+ environment :
83+ APP_HOST : 0.0.0.0
84+ APP_PORT : 3000
8785
88- # NODE_ENV: production
86+ NODE_ENV : production
8987
90- # NUXT_PUBLIC_BASE_URL: http://acme.local
91- # expose:
92- # - 3000
88+ NUXT_PUBLIC_BASE_URL : http://acme.local
89+ expose :
90+ - 3000
9391
94- # proxy:
95- # container_name: oauth -proxy
96- # image: nginx:latest
97- # depends_on:
98- # api:
99- # condition: service_started
100- # management:
101- # condition: service_started
102- # ports:
103- # - "0.0.0.0:80:80"
104- # volumes:
105- # - ./proxy:/etc/nginx/conf.d
92+ proxy :
93+ container_name : auth -proxy
94+ image : nginx:latest
95+ depends_on :
96+ api :
97+ condition : service_started
98+ management :
99+ condition : service_started
100+ ports :
101+ - " 0.0.0.0:80:80"
102+ volumes :
103+ - ./proxy:/etc/nginx/conf.d
0 commit comments