File tree Expand file tree Collapse file tree 2 files changed +69
-2
lines changed Expand file tree Collapse file tree 2 files changed +69
-2
lines changed Original file line number Diff line number Diff line change 1+ name : dzcode-production
2+
3+ services :
4+ web :
5+ image : ghcr.io/dzcode-io/production-dot-dzcode-dot-io-server:latest
6+ pull_policy : always
7+ restart : unless-stopped
8+ environment :
9+ - VIRTUAL_HOST=www.dzcode.io,dzcode.io
10+ - LETSENCRYPT_HOST=www.dzcode.io,dzcode.io
11+ - STAGE=production
12+ networks :
13+ - main-infra-network
14+
15+ api :
16+ image : ghcr.io/dzcode-io/api-dot-production-dot-dzcode-dot-io-server:latest
17+ pull_policy : always
18+ restart : unless-stopped
19+ depends_on :
20+ postgres :
21+ condition : service_started
22+ meilisearch :
23+ condition : service_started
24+ environment :
25+ - VIRTUAL_HOST=api.dzcode.io
26+ - LETSENCRYPT_HOST=api.dzcode.io
27+ - NODE_ENV=production
28+ - OPENAI_KEY={{OPENAI_KEY}}
29+ - GITHUB_TOKEN={{GITHUB_TOKEN}}
30+ volumes :
31+ - fetch_cache:/usr/src/repo/api/fetch_cache
32+ - sqlite_db:/usr/src/repo/api/sqlite_db
33+ networks :
34+ - main-infra-network
35+ - internal-network
36+
37+ postgres :
38+ image : postgres
39+ volumes :
40+ - postgres_db:/var/lib/postgresql/data
41+ environment :
42+ POSTGRES_HOST_AUTH_METHOD : trust
43+ POSTGRES_DB : db
44+ networks :
45+ - internal-network
46+
47+ meilisearch :
48+ image : getmeili/meilisearch:v1.11.3 # database schema is different between versions
49+ volumes :
50+ - meilisearch_db:/meili_data
51+ environment :
52+ MEILI_NO_ANALYTICS : true
53+ MEILI_MASTER_KEY : " default" # we only access it through `./api`
54+ networks :
55+ - internal-network
56+
57+ networks :
58+ main-infra-network :
59+ external : true
60+ internal-network :
61+ internal : true
62+
63+ volumes :
64+ postgres_db :
65+ meilisearch_db :
66+ fetch_cache :
67+ sqlite_db :
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ use clap::Parser;
1313#[ derive( Clone , Debug , clap:: ValueEnum ) ]
1414enum Env {
1515 Stage ,
16- Prod ,
16+ Production ,
1717}
1818
19- /// Deploy dzcode to stage or prod
19+ /// Deploy dzcode to stage or production
2020#[ derive( Parser , Debug ) ]
2121struct Args {
2222 /// Environment to deploy to
You can’t perform that action at this time.
0 commit comments