-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yaml
111 lines (111 loc) · 3.01 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
services:
codex-base:
build:
context: .
dockerfile: docker/base.Dockerfile
args:
CODEX_BASE_VERSION:
image: docker.io/ajslater/codex-base
codex-builder-base:
build:
context: .
dockerfile: docker/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: docker/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-backend-lint:
<<: *codex-dist-builder
container_name: codex-backend-lint
command: make lint-backend
codex-frontend-lint:
<<: *codex-dist-builder
container_name: codex-frontent-lint
command: make choices lint-frontend
volumes:
- ./frontend/src/choices:/app/frontend/src/choices
codex-frontend-test:
<<: *codex-dist-builder
container_name: codex-frontend-test
command: make test-frontend
volumes:
- ./test-results/:/app/test-results/
- ./frontend/src/choices:/app/frontend/src/choices:ro
codex-frontend-build:
<<: *codex-dist-builder
container_name: codex-frontend-build
volumes:
- ./codex/static_build:/app/codex/static_build
- ./frontend/src/choices:/app/frontend/src/choices:ro
command: make build-frontend
codex-backend-test:
<<: *codex-dist-builder
container_name: codex-backend-test
volumes:
- ./codex/static_build:/app/codex/static_build:ro
- ./test-results/:/app/test-results/
command: make test-backend
codex-build-dist:
<<: *codex-dist-builder
container_name: codex-build-dist
volumes:
- ./codex/static_build:/app/codex/static_build:ro
- ./dist/:/app/dist/
command: make build-backend
codex-arch:
build:
context: .
dockerfile: docker/Dockerfile
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:
build:
context: .
dockerfile: docker/Dockerfile
image: docker.io/ajslater/codex
container_name: codex
ports:
- "9810:9810"
volumes:
- ./config:/config
- ./comics:/comics:ro
codex-dev:
build:
context: .
dockerfile: docker/dev.Dockerfile
image: codex-dev
# mem_limit: 1g
container_name: codex-dev
environment:
- VITE_HOST=localhost
ports:
- "9810:9810"
volumes:
- .:/app
- ./comics:/comics
# init: true
command: tail -f /dev/null
# entrypoint: ["/sbin/tini", "--"]
nginx:
image: lscr.io/linuxserver/nginx
container_name: nginx
restart: unless-stopped
ports:
- "80:9811"
volumes:
- ./docker/nginx/http.d/codex:/etc/nginx/http.d/codex:ro