generated from alecodes/base-template
feat: add basic project layout and migration config
This commit is contained in:
parent
d9962769ad
commit
f937122a2a
5 changed files with 37 additions and 1 deletions
7
docker/Dockerfile
Normal file
7
docker/Dockerfile
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# FROM ghcr.io/linuxcontainers/debian-slim:latest
|
||||
|
||||
FROM lovasoa/sqlpage
|
||||
|
||||
COPY --from=ghcr.io/amacneil/dbmate /usr/local/bin/dbmate /usr/local/bin/dbmate
|
||||
|
||||
WORKDIR /app
|
||||
15
docker/docker-compose.yaml
Normal file
15
docker/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
services:
|
||||
index:
|
||||
image: alecodes/index:latest
|
||||
pull_policy: build
|
||||
user: 1000:1000
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: ./docker/Dockerfile
|
||||
env_file: ../.env
|
||||
volumes:
|
||||
- ../src:/app
|
||||
|
||||
db:
|
||||
image: postgres:17
|
||||
env_file: ../.env
|
||||
Loading…
Add table
Add a link
Reference in a new issue