diff --git a/db/.gitignore b/.gitignore similarity index 100% rename from db/.gitignore rename to .gitignore diff --git a/app/.gitignore b/app/.gitignore index 6ed48a9..3c3629e 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1,2 +1 @@ -.env node_modules diff --git a/app/compose.yml b/app/compose.yml deleted file mode 100644 index c713e06..0000000 --- a/app/compose.yml +++ /dev/null @@ -1,10 +0,0 @@ -services: - app: - image: kou029w/quot-app - build: "." - restart: unless-stopped - init: true - user: ${UID:-1000}:${GID:-1000} - ports: ["8080:8080"] - volumes: - - ".:/app" diff --git a/db/compose.yml b/compose.yml similarity index 83% rename from db/compose.yml rename to compose.yml index d163993..87fc163 100644 --- a/db/compose.yml +++ b/compose.yml @@ -1,4 +1,13 @@ services: + app: + image: kou029w/quot-app + build: app + restart: unless-stopped + init: true + user: ${UID:-1000}:${GID:-1000} + ports: ["8080:8080"] + volumes: + - ./app:/app api: image: postgrest/postgrest:v10.0.0 restart: unless-stopped @@ -19,7 +28,7 @@ services: environment: DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@/postgres?host=/var/run/postgresql volumes: - - .:/db + - ./db:/db - postgres_socket:/var/run/postgresql depends_on: [db] db: