diff --git a/Dockerfile b/Dockerfile index 86d2c03..21f8be2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,8 @@ COPY src ./src COPY bot.properties.example bot.properties ./ COPY startup.sh ./ +RUN ["chmod", "+x", "./mvnw"] RUN ./mvnw install +RUN ["chmod", "+x", "./startup.sh"] CMD ["./startup.sh"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 15a9e7b..9cbe57e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: db: image: mariadb:10.7 container_name: db - restart: always + restart: unless-stopped volumes: - netneutrality-db:/var/lib/mysql - ./sql:/docker-entrypoint-initdb.d @@ -21,7 +21,7 @@ services: bot: container_name: bot build: ./ - restart: always + restart: unless-stopped depends_on: - db environment: