Change how docker-compose maps volumes
Only a handful of locations are shared with the docker-compose file, instead of the entire directory, to prevent build files from being overwritten by root. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -21,7 +21,6 @@ ENV PATH="/root/.cargo/bin:$PATH"
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
RUN mix local.hex --force
|
||||
RUN mix local.rebar --force
|
||||
|
||||
|
||||
@@ -4,9 +4,10 @@ services:
|
||||
build: .
|
||||
env_file: docker.env
|
||||
volumes:
|
||||
- ".:/app"
|
||||
# ignore build data
|
||||
- "/app/_build"
|
||||
- "/app/deps"
|
||||
- "./mix.exs:/app/mix.exs"
|
||||
- "./lib:/app/lib"
|
||||
- "./config:/app/config"
|
||||
- "./data:/app/data"
|
||||
- "./omnibot.exs:/app/omnibot.exs"
|
||||
working_dir: "/app"
|
||||
restart: always
|
||||
|
||||
@@ -4,7 +4,7 @@ defmodule Omnibot.Contrib.Markov do
|
||||
require Logger
|
||||
|
||||
@default_config [
|
||||
save_dir: "markov",
|
||||
save_dir: "data/markov",
|
||||
order: 2,
|
||||
save_every: 5 * 60,
|
||||
ignore: [],
|
||||
|
||||
@@ -3,7 +3,7 @@ defmodule Omnibot.Contrib.Wordbot do
|
||||
alias Omnibot.{Contrib.Wordbot, Irc, Util}
|
||||
require Logger
|
||||
|
||||
@default_config wordbot_source: "words.txt", wordbot_db: "wordbot.db", words_per_round: 300, hours_per_round: 5, ignore: []
|
||||
@default_config wordbot_source: "data/wordbot/words.txt", wordbot_db: "data/wordbot/wordbot.db", words_per_round: 300, hours_per_round: 5, ignore: []
|
||||
|
||||
@impl true
|
||||
def children(cfg) do
|
||||
|
||||
Reference in New Issue
Block a user