Skip to content

set --log-level by ENV in docker #601

Discussion options

You must be logged in to vote

Can you just use

pgtt:
    image: "cybertecpostgresql/pg_timetable:latest"
    networks:
      - app-tier
    depends_on:
      - wns_db
    volumes:
      - ./pgtt/scripts:/usr/local/bin
      - ./wnslib:/wnslib
    command:
        ["/pg_timetable", "--log-level=debug"]
    environment:
      PGTT_CLIENTNAME: cron
      PGTT_PGHOST: ${PG_HOST}
      PGTT_PGPORT: ${PG_DB_PORT}
      PGTT_PGDATABASE: ${PG_DB_NAME}
      PGTT_PGUSER: ${PG_USER}
      PGTT_PGPASSWORD: ${PG_PASSWORD}

?

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pashagolub
Comment options

Answer selected by massimiliano-cannata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
❓ question Further information is requested
2 participants