feat: cleanup docker setup
- Add .dockerignore - Replace .env with .env.example - Add migrations service - Cleanup Dockerfile: simpler setup, simpler copy, no migrations inside the image - Update README to match new instruction
This commit is contained in:
parent
c92b169435
commit
1d4251c23e
6 changed files with 90 additions and 46 deletions
|
|
@ -1,13 +1,32 @@
|
|||
version: "3.3"
|
||||
|
||||
services:
|
||||
nsecbunkerd:
|
||||
image: nsecbunkerd
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
pids_limit: 50
|
||||
mem_limit: 256mb
|
||||
memswap_limit: 256mb
|
||||
volumes:
|
||||
- ./nsecbunker-config:/app/config
|
||||
command: start --admin <npub>
|
||||
nsecbunkerd:
|
||||
image: pablof7z/nsecbunkerd
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
pids_limit: 100
|
||||
mem_limit: 256mb
|
||||
memswap_limit: 256mb
|
||||
volumes:
|
||||
- $HOME/.nsecbunker-config:/app/config
|
||||
env_file:
|
||||
- .env.example
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- migrations
|
||||
|
||||
migrations:
|
||||
image: pablof7z/nsecbunkerd
|
||||
volumes:
|
||||
- $HOME/.nsecbunker-config:/app/config
|
||||
env_file:
|
||||
- .env.example
|
||||
restart: no
|
||||
entrypoint: ""
|
||||
command:
|
||||
- npx
|
||||
- prisma
|
||||
- migrate
|
||||
- deploy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue