-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
81 lines (73 loc) · 1.48 KB
/
docker-compose.yml
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
version: "3.9"
volumes:
m2:
.cpcache:
.shadow-cljs:
networks:
server:
services:
server:
container_name: server
image: ghcr.io/njordhov/docker-shadow-cljs:v0.2
networks:
- server
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9630"]
interval: 10s
timeout: 30s
retries: 12
ports:
- "9630:9630"
- "9090:9090"
- "9099:9099"
- "8080:8080"
volumes:
- .:/home
- m2:/root/.m2
- .cpcache:/tmp/.cpcache
- .shadow-cljs:/tmp/.shadow-cljs
working_dir: /home
entrypoint:
- npx
- shadow-cljs
- server
shadow-cljs:
image: ghcr.io/njordhov/docker-shadow-cljs:v0.2
depends_on:
server:
condition: service_healthy
networks:
- server
network_mode: service:server
working_dir: /home
volumes:
- .:/home
- m2:/root/.m2
- .cpcache:/tmp/.cpcache
- .shadow-cljs:/tmp/.shadow-cljs
entrypoint:
- npx
- shadow-cljs
## -------
install:
image: .
working_dir: /home
volumes:
- .:/home
- m2:/root/.m2
entrypoint: "cp /app/clariform.js /home"
clariform:
build: .
working_dir: /home
volumes:
- .:/clariform
- $PWD:/home
- m2:/root/.m2
entrypoint: node /app/clariform.js
release:
build: .
working_dir: /home
volumes:
- .:/home
- m2:/root/.m2
entrypoint: "npm run release"