[READ ONLY MIRROR] Spark Social AppView Server
github.com/sprksocial/server
atproto
deno
hono
lexicon
1services:
2 db:
3 image: mongo:8
4 environment:
5 MONGO_INITDB_ROOT_USERNAME: mongo
6 MONGO_INITDB_ROOT_PASSWORD: mongo
7 MONGO_INITDB_DATABASE: dev
8 ports:
9 - "27017:27017"
10 volumes:
11 - ./devdb:/data/db
12 healthcheck:
13 test: ["CMD", "mongosh", "--eval", '''db.adminCommand("ping")''']
14 interval: 10s
15 timeout: 5s
16 retries: 3
17 restart: unless-stopped
18
19 app:
20 build:
21 context: .
22 dockerfile: Dockerfile
23 command: ["deno", "run", "-A", "--watch", "main.ts"]
24 environment:
25 NODE_ENV: development
26 HOST: 0.0.0.0
27 SPRK_PORT: 3000
28 SPRK_DB_URI: mongodb://mongo:mongo@db:27017
29 SPRK_DB_NAME: dev
30 SPRK_ADMIN_PASSWORDS: "12345"
31 env_file:
32 - .env
33 ports:
34 - "4000:3000"
35 depends_on:
36 db:
37 condition: service_healthy
38 develop:
39 watch:
40 - path: ./api
41 action: sync
42 target: /app/api
43 - path: ./lexicon
44 action: sync
45 target: /app/lexicon
46 - path: ./services
47 action: sync
48 target: /app/services
49 - path: ./utils
50 action: sync
51 target: /app/utils
52 - path: ./data-plane
53 action: sync
54 target: /app/data-plane
55 - path: ./main.ts
56 action: sync
57 target: /app/main.ts
58 - path: ./views
59 action: sync
60 target: /app/views
61 - path: ./data-plane
62 action: sync
63 target: /app/data-plane
64 - path: ./hydration
65 action: sync
66 target: /app/hydration
67 restart: unless-stopped
68
69 ingester:
70 build:
71 context: .
72 dockerfile: Dockerfile
73 command: ["deno", "run", "-A", "--watch", "ingest.ts"]
74 environment:
75 NODE_ENV: development
76 HOST: 0.0.0.0
77 SPRK_DB_URI: mongodb://mongo:mongo@db:27017
78 SPRK_DB_NAME: dev
79 ADMIN_PASSWORD: "12345"
80 env_file:
81 - .env
82 depends_on:
83 db:
84 condition: service_healthy
85 develop:
86 watch:
87 - path: ./api
88 action: sync
89 target: /app/api
90 - path: ./lexicon
91 action: sync
92 target: /app/lexicon
93 - path: ./services
94 action: sync
95 target: /app/services
96 - path: ./utils
97 action: sync
98 target: /app/utils
99 - path: ./data-plane
100 action: sync
101 target: /app/data-plane
102 - path: ./main.ts
103 action: sync
104 target: /app/main.ts
105 - path: ./views
106 action: sync
107 target: /app/views
108 - path: ./data-plane
109 action: sync
110 target: /app/data-plane
111 - path: ./hydration
112 action: sync
113 target: /app/hydration
114 restart: unless-stopped