forked from ajslater/codex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
80 lines (80 loc) · 2.2 KB
/
docker-compose.yaml
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
services:
codex-base:
build:
context: .
dockerfile: base.Dockerfile
args:
CODEX_BASE_VERSION:
image: docker.io/ajslater/codex-base
codex-builder-base:
build:
context: .
dockerfile: builder-base.Dockerfile
args:
CODEX_BASE_VERSION:
CODEX_BUILDER_BASE_VERSION:
image: docker.io/ajslater/codex-builder-base
codex-dist-builder: &codex-dist-builder
build:
context: .
dockerfile: dist-builder.Dockerfile
args:
CODEX_BUILDER_BASE_VERSION:
CODEX_DIST_BUILDER_VERSION:
image: docker.io/ajslater/codex-dist-builder:$CODEX_DIST_BUILDER_VERSION
container_name: codex-dist-builder
codex-frontend-lint:
<<: *codex-dist-builder
container_name: codex-frontent-lint
command: ./lint-frontend.sh
codex-frontend-test:
<<: *codex-dist-builder
container_name: codex-frontend-test
command: ./test-frontend.sh
volumes:
- ./test-results/:/app/test-results/
codex-frontend-build:
<<: *codex-dist-builder
container_name: codex-frontend-build
volumes:
- ./codex/static_build:/app/codex/static_build
command: ./build-frontend.sh
codex-backend-test:
<<: *codex-dist-builder
container_name: codex-backend-test
volumes:
- ./codex/static_build:/app/codex/static_build:ro
- ./codex/static_root:/app/codex/static_root
- ./test-results/:/app/test-results/
command: ./test-backend.sh
codex-backend-lint:
<<: *codex-dist-builder
container_name: codex-backend-lint
command: ./lint-backend.sh
codex-build-dist:
<<: *codex-dist-builder
container_name: codex-build-dist
volumes:
- ./codex/static_root:/app/codex/static_root:ro
- ./dist/:/app/dist/
command: ./build-dist.sh
codex-arch:
build:
context: .
args:
CODEX_BUILDER_BASE_VERSION:
CODEX_BASE_VERSION:
CODEX_BUILDER_FINAL_VERSION:
CODEX_WHEEL:
PKG_VERSION:
image: docker.io/ajslater/codex-arch
container_name: codex-arch
codex:
image: docker.io/ajslater/codex
container_name: codex
ports:
- "9810:9810"
volumes:
- ./config:/config
- ./comics:/comics:ro
version: "3.8"