Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[deployment] Change scratchy in docker environment for JSON logging #150

Open
landerneRPi opened this issue May 1, 2021 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@landerneRPi
Copy link
Collaborator

landerneRPi commented May 1, 2021

Add scratchy using docker image in docker-compose.yaml file (from Dockerfile in server directory):

  • docker build -t scratchy-server:latest .

Use fluentd docker driver for logging, example:

  scratchy:
    image: scratchy-server:latest
    ports:
      - "5000:5000"
    links:
      - "mongodb"
    volumes:
      - ./etc/scratchy/config.json:/app/config.json
      - ./etc/scratchy/logging.yaml:/app/logging.yaml
    logging:
      driver: "fluentd"
      options:
        fluentd-address: localhost:24224
        tag: scratchy.server
@landerneRPi landerneRPi added the enhancement New feature or request label May 1, 2021
@landerneRPi landerneRPi added this to the V2 milestone May 1, 2021
@landerneRPi landerneRPi changed the title [deployment] Add scratchy to docker environment [deployment] Change scratchy in docker environment for JSON logging May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant