docker config is coming along... this one builds luminus with shadow-cljs and postgresql
version: '3.1'
services:
db:
image: postgres
environment:
POSTGRES_DB: sample-test
POSTGRES_HOST_AUTH_METHOD: trust
dev-backend:
depends_on:
- db
image: clojure
volumes:
- .:/usr/src/app
working_dir: /usr/src/app
command: >
bash -c
"lein run migrate
&& lein run dev"
environment:
DATABASE_URL: <postgresql://postgres@db:5432/sample-test>
ports:
- 3000:3000
- 7000:7000
dev-frontend:
image: theasp/clojurescript-nodejs:latest
volumes:
- .:/usr/src/app
working_dir: /usr/src/app
command: >
bash -c "
lein shadow watch app"
ports:
- 7002:7002
- 9630:9630