forked from Sudashiii/Sake
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
51 lines (49 loc) · 1.52 KB
/
docker-compose.yaml
File metadata and controls
51 lines (49 loc) · 1.52 KB
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
services:
sake-migrator:
build:
context: .
dockerfile: ./sake/dockerfile
args:
PUBLIC_WEBAPP_VERSION: ${PUBLIC_WEBAPP_VERSION:-dev-local}
PUBLIC_WEBAPP_GIT_TAG: ${PUBLIC_WEBAPP_GIT_TAG:-}
PUBLIC_WEBAPP_COMMIT_SHA: ${PUBLIC_WEBAPP_COMMIT_SHA:-}
PUBLIC_WEBAPP_RELEASED_AT: ${PUBLIC_WEBAPP_RELEASED_AT:-}
image: sake
container_name: sake-migrator
command: ["bun", "run", "db:migrate"]
env_file:
- ./sake/.env
# networks:
# - caddy_net
restart: "no"
sake:
build:
context: .
dockerfile: ./sake/dockerfile
args:
PUBLIC_WEBAPP_VERSION: ${PUBLIC_WEBAPP_VERSION:-dev-local}
PUBLIC_WEBAPP_GIT_TAG: ${PUBLIC_WEBAPP_GIT_TAG:-}
PUBLIC_WEBAPP_COMMIT_SHA: ${PUBLIC_WEBAPP_COMMIT_SHA:-}
PUBLIC_WEBAPP_RELEASED_AT: ${PUBLIC_WEBAPP_RELEASED_AT:-}
image: sake
container_name: sake
depends_on:
sake-migrator:
condition: service_completed_successfully
ports:
- "5173:3000"
environment:
- PUBLIC_WEBAPP_VERSION=${PUBLIC_WEBAPP_VERSION:-dev-local}
- PUBLIC_WEBAPP_GIT_TAG=${PUBLIC_WEBAPP_GIT_TAG:-}
- PUBLIC_WEBAPP_COMMIT_SHA=${PUBLIC_WEBAPP_COMMIT_SHA:-}
- PUBLIC_WEBAPP_RELEASED_AT=${PUBLIC_WEBAPP_RELEASED_AT:-}
env_file:
- ./sake/.env
volumes:
- ./koreaderPlugins/sake.koplugin:/app/koreaderPlugins/sake.koplugin:ro
# networks:
# - caddy_net
# If a reverse proxy like caddy is used
# networks:
# caddy_net:
# external: true