Build web via node docker

This commit is contained in:
Guntis Smaukstelis
2023-12-19 16:06:32 +02:00
parent d08422f929
commit ac8c74fda1
4 changed files with 16 additions and 53 deletions
+9 -2
View File
@@ -1,7 +1,14 @@
version: '3'
services:
node:
image: node:16.13.1
working_dir: /app/web
volumes:
- $PWD/web:/app/web
command: sh -c "npm install && npm run build"
postgres:
image: postgres:latest
image: postgres:16.1
ports:
- "5432:5432"
environment:
@@ -11,7 +18,7 @@ services:
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
scala-app:
scala:
build:
context: .
dockerfile: Dockerfile.local