mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
Update and fix docker-compose (#1076)
* Update docker-compose.yml * Update docker-compose-dev.yml * Create env_example
This commit is contained in:
parent
0495c31996
commit
9cd8c519b1
3 changed files with 32 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ version: '2'
|
|||
|
||||
services:
|
||||
uppy:
|
||||
image: companion
|
||||
image: transloadit/companion
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
|
@ -11,6 +11,9 @@ services:
|
|||
volumes:
|
||||
- ./:/app
|
||||
- /app/node_modules
|
||||
- /mnt/uppy-server-data:/mnt/uppy-server-data
|
||||
ports:
|
||||
- "3020:3020"
|
||||
command: ["/usr/bin/nodemon", "/app/lib/standalone/start-server.js", "--config", "/app/nodemon.json"]
|
||||
command: "/app/src/standalone/start-server.js --config nodemon.json"
|
||||
env_file:
|
||||
- .env
|
||||
|
|
|
|||
|
|
@ -2,11 +2,14 @@ version: '2'
|
|||
|
||||
services:
|
||||
uppy:
|
||||
image: companion
|
||||
image: transloadit/companion
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
volumes:
|
||||
- /app/node_modules
|
||||
- /mnt/uppy-server-data:/mnt/uppy-server-data
|
||||
ports:
|
||||
- "3020:3020"
|
||||
env_file:
|
||||
- .env
|
||||
|
|
|
|||
23
packages/@uppy/companion/env_example
Normal file
23
packages/@uppy/companion/env_example
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
NODE_ENV=dev
|
||||
COMPANION_PORT=3020
|
||||
COMPANION_DOMAIN=uppy.xxxx.com
|
||||
COMPANION_SELF_ENDPOINT=uppy.xxxx.com
|
||||
|
||||
COMPANION_PROTOCOL=https
|
||||
COMPANION_DATADIR=/mnt/uppy-server-data
|
||||
COMPANION_SECRET=
|
||||
|
||||
COMPANION_DROPBOX_KEY="dropbox_key"
|
||||
COMPANION_DROPBOX_SECRET="dropbox_secret"
|
||||
|
||||
COMPANION_GOOGLE_KEY=
|
||||
COMPANION_GOOGLE_SECRET=
|
||||
|
||||
COMPANION_INSTAGRAM_KEY=
|
||||
COMPANION_INSTAGRAM_SECRET=
|
||||
|
||||
COMPANION_AWS_KEY=
|
||||
COMPANION_AWS_SECRET=
|
||||
COMPANION_AWS_BUCKET=
|
||||
COMPANION_AWS_ENDPOINT=
|
||||
COMPANION_AWS_REGION=
|
||||
Loading…
Add table
Add a link
Reference in a new issue