Docker actually persists db files now lmao
This commit is contained in:
parent
0c692a62e8
commit
44bdbaf4c6
3
.env.example
Normal file
3
.env.example
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PB_ADMIN_EMAIL=admin@example.com
|
||||||
|
PB_ADMIN_PASSWORD=secret-password
|
||||||
|
PB_URL=http://pocketbase:8080
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@ node_modules
|
|||||||
.wrangler
|
.wrangler
|
||||||
/.svelte-kit
|
/.svelte-kit
|
||||||
/build
|
/build
|
||||||
|
/data
|
||||||
|
|
||||||
# OS
|
# OS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
ARG PB_VERSION=0.29.2
|
ARG PB_VERSION=0.29.2
|
||||||
ENV PB_DATA_DIR=/pb_data
|
|
||||||
|
|
||||||
WORKDIR /pb
|
WORKDIR /pb
|
||||||
|
|
||||||
@ -19,6 +18,8 @@ RUN unzip /tmp/pb.zip -d /pb/
|
|||||||
COPY docker-entrypoint.sh /usr/local/bin/
|
COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
|
VOLUME [ "/pb/pb_data", "/pb/pb_migrations", "/pb/pb_hooks" ]
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
|
@ -9,6 +9,8 @@ services:
|
|||||||
build: api
|
build: api
|
||||||
env_file: .env
|
env_file: .env
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/pb_data
|
- ./data/data:/pb/pb_data
|
||||||
|
- ./data/migrations:/pb/pb_migrations
|
||||||
|
- ./data/hooks:/pb/pb_hooks
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
Loading…
x
Reference in New Issue
Block a user