mirror of
https://github.com/Sheldan/OnePlusBot.git
synced 2026-01-01 15:28:28 +00:00
[OPB-6] adding ability to define folders for config and log in docker compose
This commit is contained in:
@@ -56,6 +56,9 @@ services:
|
||||
- "${TOMCAT_PORT}:8080"
|
||||
networks:
|
||||
- oneplusbot
|
||||
volumes:
|
||||
- bot-logs:/logs
|
||||
- ./config:/config
|
||||
pgadmin:
|
||||
container_name: pgadmin
|
||||
image: ${REGISTRY_PREFIX}oneplus_bot_pg_admin
|
||||
@@ -81,6 +84,7 @@ services:
|
||||
- oneplusbot
|
||||
volumes:
|
||||
- ./res/prometheus-scrapper-password-filled:/etc/prometheus/micrometer_password
|
||||
- prometheus-data:/prometheus
|
||||
grafana:
|
||||
container_name: grafana
|
||||
image: ${REGISTRY_PREFIX}oneplus_bot_grafana
|
||||
@@ -102,4 +106,6 @@ networks:
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
grafana-user-data:
|
||||
grafana-user-data:
|
||||
prometheus-data:
|
||||
bot-logs:
|
||||
@@ -3,6 +3,8 @@ MAINTAINER Sheldan
|
||||
VOLUME /tmp
|
||||
ADD bot/app.jar /app.jar
|
||||
ADD config/* /config/
|
||||
VOLUME ["/config"]
|
||||
VOLUME ["/logs"]
|
||||
ADD wrapper/*.sh /
|
||||
RUN chmod +x /start.sh
|
||||
CMD ["/start.sh"]
|
||||
Reference in New Issue
Block a user