Comments (2)
This is a working configuration if you want to use docker-compose with the docker image.
Keep in mind I made this only for development. For production I wouldn't use a container-scoped postgres image but rather an RDS or other instance or set up the postgres image to persist data storage somewhere else.
However it does work nicely for development purposes and allows you to test the update flow:
## run "docker-compose up --remove-orphans" in the directory with this file.
version: '3'
services:
apache:
container_name: httpd
image: "httpd:latest"
ports:
- 9999:80
volumes:
- ./.files:/usr/local/apache2/htdocs/
db:
container_name: postgres
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: pgpassword
redis:
container_name: redis
hostname: redis
depends_on:
- db
image: redis
ports:
- 6379:6379
nucleus:
image: atlassian/nucleus
depends_on:
- redis
- db
- apache
ports:
- 3030:3030
- 8888:8888
environment:
- DEBUG=nucleus*
- NODE_ENV=production
volumes:
- ./config.js:/opt/service/config.js
- ./.files:/opt/service/.files/
Since the docker image runs the production script it doesn't run the local file server - which makes sense. All this does is uses an apache httpd server to serve files and mounts the location it expects to a local folder, as well as the location that nucleus is configured for storing files to the same local folder.
Pretty nifty!
from nucleus.
Look at this #42 (comment) and the following comments
from nucleus.
Related Issues (20)
- COPY failed: stat /var/lib/docker/tmp/docker-builder904419244/config.js: no such file or directory HOT 1
- [ERROR] node-pre-gyp err!
- downloading released package gives 102 error
- Feature Request: delete old versions (from ui and from server) to free up space
- TypeError: Cannot read property 'secret' of undefined
- [QUESTION] How do I remove an application from my Nucleus server HOT 1
- RELEASES files are empty HOT 1
- Can't release both Mac and Windows zip files HOT 1
- [QUESTION] How do I rollback a release that I accidentally made?
- Running `yarn dev` throws `nucleus Failed to connect to DB` error HOT 1
- Accessing the web dashboard throws `nucleus Error: ENOENT: no such file or directory, open 'SOME-DIR/nucleus-server/public_out/index.html'` error HOT 1
- GPG Signing Error - Invalid left-hand side expression in prefix operation
- Install fails on windows/ubuntu HOT 3
- Access-Control-Allow-Origin , Access by CORS
- GPG key is invalid or missing, you must provide "config.gpgSigningKey" HOT 4
- Nuclei Errors:
- Docs correction for electronforge link in docs/Uploading.md
- [question] [howto] How to post a file to Nucleus?
- error E:\User\Documents\Work\nucleus-server\node_modules\sqlite3: Command failed. HOT 9
- Could electron-builder publish electron app to nucleus server? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nucleus.