refactor: swap compose stack files
This commit is contained in:
3 files changed
+33
-33
No files matched your search
@@ -1,29 +0,0 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
pocketbase:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: pb_base
|
||||
command: ["/pocketbase", "serve", "--http=0.0.0.0:8090", "--hooksDir=/pb_hooks"]
|
||||
ports:
|
||||
- "8090:8090"
|
||||
volumes:
|
||||
- ./pb_data:/pb_data
|
||||
- ./backend/pb_migrations:/pb_migrations
|
||||
- ./backend/pb_hooks:/pb_hooks
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
# Podnosimy serwer z flaga host aby byl widoczny z zewnatrz
|
||||
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
environment:
|
||||
- VITE_PB_URL=http://localhost:8090
|
||||
restart: unless-stopped
|
||||
@@ -0,0 +1,15 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
nene:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8090:8090"
|
||||
volumes:
|
||||
- pb_data:/pb_data
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
pb_data:
|
||||
+18
-4
@@ -1,15 +1,29 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
nene:
|
||||
pocketbase:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: pb_base
|
||||
command: ["/pocketbase", "serve", "--http=0.0.0.0:8090", "--hooksDir=/pb_hooks"]
|
||||
ports:
|
||||
- "8090:8090"
|
||||
volumes:
|
||||
- pb_data:/pb_data
|
||||
- ./pb_data:/pb_data
|
||||
- ./backend/pb_migrations:/pb_migrations
|
||||
- ./backend/pb_hooks:/pb_hooks
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
pb_data:
|
||||
frontend:
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
# Podnosimy serwer z flaga host aby byl widoczny z zewnatrz
|
||||
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
environment:
|
||||
- VITE_PB_URL=http://localhost:8090
|
||||
restart: unless-stopped
|
||||
Reference in new issue
Block a user