Git Product home page Git Product logo

Comments (2)

b-zurg avatar b-zurg commented on June 3, 2024 1

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.

Wolvan avatar Wolvan commented on June 3, 2024

Look at this #42 (comment) and the following comments

from nucleus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.