[OPB-6] adding ability to define folders for config and log in docker compose

This commit is contained in:
Sheldan
2021-03-24 14:12:52 +01:00
parent 1717954cb6
commit 6f9dfb1087
2 changed files with 9 additions and 1 deletions

View File

@@ -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:

View File

@@ -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"]