diff --git a/docker-compose.postgres.yml b/docker-compose.postgres.yml index d6b1e5f..4ea1c03 100644 --- a/docker-compose.postgres.yml +++ b/docker-compose.postgres.yml @@ -7,7 +7,7 @@ services: container_name: teldrive volumes: - ./teldrive.db:/teldrive.db:rw - - ./logs:/logs:rw + - ./config.toml:/config.toml env_file: teldrive.env ports: - 8080:8080 @@ -22,12 +22,8 @@ services: - POSTGRES_USER=teldrive - POSTGRES_PASSWORD=secret volumes: - - teldrive_db:/var/lib/postgresql/data + - ./postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD", "pg_isready", "-U", "teldrive"] interval: 10s start_period: 30s - -volumes: - teldrive_db: - diff --git a/docker-compose.yml b/docker-compose.yml index 4f60898..f2f7ac9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,6 @@ services: container_name: teldrive volumes: - ./teldrive.db:/teldrive.db:rw - - ./logs:/logs:rw - env_file: teldrive.env + - ./config.toml:/config.toml ports: - 8080:8080