Update and fix docker-compose (#1076)

* Update docker-compose.yml

* Update docker-compose-dev.yml

* Create env_example
This commit is contained in:
Rustam S 2018-10-10 15:55:03 +05:00 committed by Kevin van Zonneveld
parent 0495c31996
commit 9cd8c519b1
3 changed files with 32 additions and 3 deletions

View file

@ -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

View file

@ -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

View 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=