Skip to content

Commit 4559854

Browse files
authored
add a new quick compose (#204)
1 parent da0f697 commit 4559854

4 files changed

Lines changed: 175 additions & 0 deletions

File tree

quick/compose.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
services:
2+
3+
caddy:
4+
image: caddy:2
5+
ports:
6+
- 80:80
7+
environment:
8+
- LILA_DOMAIN=${LILA_DOMAIN:-localhost}
9+
- LILA_URL=${LILA_URL:-http://localhost}
10+
volumes:
11+
- ./conf/Caddyfile:/etc/caddy/Caddyfile
12+
13+
lila:
14+
image: ghcr.io/lichess-org/lila-server:latest
15+
environment:
16+
- LILA_DOMAIN=${LILA_DOMAIN:-localhost}
17+
- LILA_URL=${LILA_URL:-http://localhost}
18+
volumes:
19+
- ./conf/lila.conf:/lila/conf/application.conf
20+
- lila-assets-data:/lila/public
21+
22+
lila_assets:
23+
image: ghcr.io/lichess-org/lila-assets:latest
24+
volumes:
25+
- lila-assets-data:/usr/share/nginx/html/public
26+
27+
lila_ws:
28+
image: ghcr.io/lichess-org/lila-ws:latest
29+
environment:
30+
- CONFIG_FORCE_csrf.origin=${LILA_URL:-http://localhost}
31+
- CONFIG_FORCE_mongo_uri=mongodb://mongodb:27017/lichess?appName=lila-ws
32+
- CONFIG_FORCE_redis.uri=redis://redis
33+
34+
mongodb:
35+
image: mongo:8.2-noble
36+
37+
redis:
38+
image: redis:8
39+
40+
lila_fishnet:
41+
image: ghcr.io/lichess-org/lila-fishnet:latest
42+
environment:
43+
- REDIS_HOST=redis
44+
# - HTTP_API_LOGGER=true
45+
46+
fishnet_play:
47+
image: niklasf/fishnet:master
48+
environment:
49+
- ENDPOINT=http://lila_fishnet:9665/fishnet
50+
- MAX_BACKOFF=5
51+
- STATS_FILE=/stats.json
52+
53+
fishnet_analysis:
54+
image: niklasf/fishnet:master
55+
environment:
56+
- ENDPOINT=http://lila:9663/fishnet
57+
- MAX_BACKOFF=5
58+
- STATS_FILE=/stats.json
59+
60+
lila_gif:
61+
image: ghcr.io/lichess-org/lila-gif:latest
62+
entrypoint: /usr/local/bin/lila-gif --bind 0.0.0.0:6175
63+
64+
lila_db_seed:
65+
image: ghcr.io/lichess-org/lila-db-seed:latest
66+
67+
picfit:
68+
image: thoas/picfit:0.16.1
69+
environment:
70+
- PICFIT_CONFIG_PATH=/mnt/config.json
71+
volumes:
72+
- ./conf/picfit.json:/mnt/config.json
73+
74+
mailpit:
75+
image: axllent/mailpit:latest
76+
environment:
77+
- MP_WEBROOT=mailpit
78+
79+
volumes:
80+
lila-assets-data:
81+
82+
networks:
83+
default:
84+
driver: bridge

quick/conf/Caddyfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
:80
2+
3+
handle_path /oops/* {
4+
rewrite * /public/oops{path}
5+
reverse_proxy lila_assets:80
6+
}
7+
8+
# for http://localhost/oops/font.html
9+
handle_path /font/* {
10+
rewrite * /public/font{path}
11+
reverse_proxy lila_assets:80
12+
}
13+
14+
handle_path /display* {
15+
rewrite * /display
16+
reverse_proxy picfit:3001
17+
}
18+
19+
handle_path /mailpit* {
20+
rewrite * /mailpit{path}
21+
reverse_proxy mailpit:8025
22+
}
23+
24+
@websockets {
25+
header Connection *Upgrade*
26+
header Upgrade websocket
27+
}
28+
29+
reverse_proxy @websockets lila_ws:9664 {
30+
header_up Origin {$LILA_URL}
31+
}
32+
33+
reverse_proxy lila:9663 {
34+
header_up Host {$LILA_DOMAIN}
35+
header_up Origin {$LILA_URL}
36+
37+
# allow CORS for requests from web client on lichess.org/api
38+
header_down Access-Control-Allow-Origin "*"
39+
40+
header_down Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"
41+
}

quick/conf/lila.conf

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
include "base"
2+
include "version"
3+
4+
user.password.bpass.secret = "9qEYN0ThHer1KWLNekA76Q=="
5+
6+
net.site.name = "lila"
7+
net.domain = ${?LILA_DOMAIN}
8+
net.socket.domains = [ ${?LILA_DOMAIN} ]
9+
net.asset.base_url = ${?LILA_URL}
10+
net.base_url = ${?LILA_URL}
11+
net.email = "help@example.com"
12+
13+
mongodb.uri = "mongodb://mongodb?appName=lila"
14+
redis.uri = "redis://redis"
15+
16+
game.gifUrl = "http://lila_gif:6175"
17+
18+
search.enabled = false
19+
search.endpoint = "http://lila_search_app:9673"
20+
21+
memo.picfit.endpointGet = ${?LILA_URL}
22+
memo.picfit.endpointPost = "http://picfit:3001"
23+
24+
mailer.primary.mock = false
25+
mailer.primary.tls = false
26+
mailer.primary.host = "mailpit"
27+
mailer.primary.port = 1025
28+
mailer.primary.sender = "lichess.org <noreply@lichess.org>"
29+
security.email_confirm.enabled = true
30+
31+
plan.stripe.keys.public = "pk_test_123"
32+
plan.stripe.keys.secret = "sk_test_123"
33+
plan.payPal.keys.public = "sb"
34+
35+
hcaptcha.enabled = false
36+
hcaptcha.public_key = "10000000-ffff-ffff-ffff-000000000001"
37+
hcaptcha.private_key = "0x0000000000000000000000000000000000000000"

quick/conf/picfit.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"debug": true,
3+
"port": 3001,
4+
"options": {
5+
"enable_upload": true
6+
},
7+
"storage": {
8+
"src": {
9+
"type": "fs",
10+
"location": "/uploads/"
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)