2022-07-01 23:06:50 +03:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
webapp:
|
|
|
|
build:
|
|
|
|
context: ./webapp
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
|
|
|
|
migrate:
|
|
|
|
build:
|
|
|
|
context: ./server/prisma
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
volumes:
|
|
|
|
- sqlite:/database/
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=file:/database/db.sqlite
|
|
|
|
|
|
|
|
server:
|
|
|
|
build:
|
|
|
|
context: ./server
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
|
|
- sqlite:/database/
|
|
|
|
environment:
|
|
|
|
- DATABASE_URL=file:/database/db.sqlite
|
2022-07-02 00:10:01 +03:00
|
|
|
- FRONTEND_URL=http://localhost:3000
|
2022-07-01 23:06:50 +03:00
|
|
|
depends_on:
|
|
|
|
- migrate
|
|
|
|
|
|
|
|
## By default this config uses default local driver,
|
|
|
|
## For custom volumes replace with volume driver configuration.
|
|
|
|
volumes:
|
|
|
|
sqlite:
|