mirror of
https://github.com/Sheldan/OnePlusBot.git
synced 2026-01-02 07:44:18 +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"
|
- "${TOMCAT_PORT}:8080"
|
||||||
networks:
|
networks:
|
||||||
- oneplusbot
|
- oneplusbot
|
||||||
|
volumes:
|
||||||
|
- bot-logs:/logs
|
||||||
|
- ./config:/config
|
||||||
pgadmin:
|
pgadmin:
|
||||||
container_name: pgadmin
|
container_name: pgadmin
|
||||||
image: ${REGISTRY_PREFIX}oneplus_bot_pg_admin
|
image: ${REGISTRY_PREFIX}oneplus_bot_pg_admin
|
||||||
@@ -81,6 +84,7 @@ services:
|
|||||||
- oneplusbot
|
- oneplusbot
|
||||||
volumes:
|
volumes:
|
||||||
- ./res/prometheus-scrapper-password-filled:/etc/prometheus/micrometer_password
|
- ./res/prometheus-scrapper-password-filled:/etc/prometheus/micrometer_password
|
||||||
|
- prometheus-data:/prometheus
|
||||||
grafana:
|
grafana:
|
||||||
container_name: grafana
|
container_name: grafana
|
||||||
image: ${REGISTRY_PREFIX}oneplus_bot_grafana
|
image: ${REGISTRY_PREFIX}oneplus_bot_grafana
|
||||||
@@ -102,4 +106,6 @@ networks:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
db-data:
|
||||||
grafana-user-data:
|
grafana-user-data:
|
||||||
|
prometheus-data:
|
||||||
|
bot-logs:
|
||||||
@@ -3,6 +3,8 @@ MAINTAINER Sheldan
|
|||||||
VOLUME /tmp
|
VOLUME /tmp
|
||||||
ADD bot/app.jar /app.jar
|
ADD bot/app.jar /app.jar
|
||||||
ADD config/* /config/
|
ADD config/* /config/
|
||||||
|
VOLUME ["/config"]
|
||||||
|
VOLUME ["/logs"]
|
||||||
ADD wrapper/*.sh /
|
ADD wrapper/*.sh /
|
||||||
RUN chmod +x /start.sh
|
RUN chmod +x /start.sh
|
||||||
CMD ["/start.sh"]
|
CMD ["/start.sh"]
|
||||||
Reference in New Issue
Block a user