Skip to content

Commit 752101b

Browse files
committed
delete docker-compose.yml as its not supported by most cpanels
1 parent 980dad2 commit 752101b

27 files changed

+184
-241
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SQLITE_DATABASE_NAME=users.sqlite
1+
SQLITE_DATABASE_PATH=./_data/users.sqlite
22

33
# Use Litestream to backup SQLite database on every insert
44
REPLICA_URL=https://<account_id>.r2.cloudflarestorage.com

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
.PHONY: build-dev
22
build-dev: ## Build the development docker image.
3-
BUILDKIT_PROGRESS=plain docker compose -f docker/development/docker-compose.yml build
3+
docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 --target development .
44

55
.PHONY: start-dev
66
start-dev: ## Start the development docker container.
7-
BUILDKIT_PROGRESS=plain docker compose -f docker/development/docker-compose.yml up -d
7+
docker run -d -p 3000:3000 -v ./_data:/data --env-file .env.development --restart unless-stopped easypanel-nextjs:0.0.1
88

99
.PHONY: stop-dev
1010
stop-dev: ## Stop the development docker container.
11-
BUILDKIT_PROGRESS=plain docker compose -f docker/development/docker-compose.yml down
11+
docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1)
1212

1313
.PHONY: build-staging
1414
build-staging: ## Build the staging docker image.
15-
BUILDKIT_PROGRESS=plain docker compose -f docker/staging/docker-compose.yml build
15+
docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 .
1616

1717
.PHONY: start-staging
1818
start-staging: ## Start the staging docker container.
19-
BUILDKIT_PROGRESS=plain docker compose -f docker/staging/docker-compose.yml up -d
19+
docker run -d -p 3000:3000 -v ./_data:/data --env-file .env.staging --restart unless-stopped easypanel-nextjs:0.0.1
2020

2121
.PHONY: stop-staging
2222
stop-staging: ## Stop the staging docker container.
23-
BUILDKIT_PROGRESS=plain docker compose -f docker/staging/docker-compose.yml down
23+
docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1)
2424

2525
.PHONY: build-prod
2626
build-prod: ## Build the production docker image.
27-
BUILDKIT_PROGRESS=plain docker compose -f docker/production/docker-compose.yml build
27+
docker build -f docker/production/Dockerfile -t easypanel-nextjs:0.0.1 .
2828

2929
.PHONY: start-prod
3030
start-prod: ## Start the production docker container.
31-
BUILDKIT_PROGRESS=plain docker compose -f docker/production/docker-compose.yml up -d
31+
docker run -d -p 3000:3000 -v ./_data:/data --env-file .env.production --restart unless-stopped easypanel-nextjs:0.0.1
3232

3333
.PHONY: stop-prod
3434
stop-prod: ## Stop the production docker container.
35-
BUILDKIT_PROGRESS=plain docker compose -f docker/production/docker-compose.yml down
35+
docker stop $$(docker ps -a -q --filter ancestor=easypanel-nextjs:0.0.1)

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,13 @@ time=2024-02-28T05:44:51.720Z level=INFO msg="snapshot written" db=/data/users.p
5959
time=2024-02-28T05:44:52.234Z level=INFO msg="write wal segment" db=/data/users.prod.sqlite replica=s3 position=ab8dd20a19bb28f7/00000000:0
6060
time=2024-02-28T05:44:52.602Z level=INFO msg="wal segment written" db=/data/users.prod.sqlite replica=s3 position=ab8dd20a19bb28f7/00000000:0 elapsed=367.834931ms sz=4152
6161
```
62+
63+
#### Easypanel Volume Mount
64+
65+
1. Go to `Storage` > Click `Add Volume Mount` > Put `Name` as anything and `Mount Path` as `/etc/easypanel/projects/[project]/[services]/volumes/data/`
66+
2. Use `/data` as directory
67+
68+
Hypothesis:
69+
70+
1. Use `/etc/easypanel/projects/[project]/[services]/volumes/data/` as `Data Path`
71+
2. Use `/data` as directory
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
52ccf2b50b81d149

_data/FIRST_TIME_MIGRATION_staging

Whitespace-only changes.

_data/users.staging.sqlite.tmp-shm

32 KB
Binary file not shown.

_data/users.staging.sqlite.tmp-wal

Whitespace-only changes.

docker/development/docker-compose.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)