-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
39 lines (36 loc) · 1.43 KB
/
docker-compose.dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# MAKE SURE YOU HAVE SET THE REQUIRED VARIABLES IN the .env FILE.configs:
# This compose file starts up a dev version of the plugin with hot code reloading.
# It is accessible at http://localhost .
version: "3.4"
services:
basescript:
container_name: basescript
image: basescript_dev
build:
dockerfile: ./dev.Dockerfile
context: .
args:
# We allow configuring the PLUGIN_BUILD_UID/PLUGIN_BUILD_GID here so you can run as the dev's actual user
# reducing the chance the containers screw up the bind mounted folders.
PLUGIN_BUILD_UID: $PLUGIN_BUILD_UID
PLUGIN_BUILD_GID: $PLUGIN_BUILD_GID
ports:
- "80:80"
- "443:443"
environment:
BASEROW_PUBLIC_URL: http://localhost
BASEROW_CELERY_WORKER_STARTUP_COMMAND: celery-worker
BASEROW_AMOUNT_OF_GUNICORN_WORKERS: 5
BASEROW_AMOUNT_OF_WORKERS: 2
volumes:
- baserow_data:/baserow/data
- ./plugins/basescript/backend:/baserow/data/plugins/basescript/backend
# Override the for node_modules, so we use the node_modules built
# directly into the image instead of whatever is on your local filesystem.
- /baserow/data/plugins/basescript/web-frontend/node_modules
- ./plugins/basescript/web-frontend:/baserow/data/plugins/basescript/web-frontend
# Open stdin and tty so when attaching key input works as expected.
stdin_open: true
tty: true
volumes:
baserow_data: